Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace "skip-duplicate-action" GHA jobs pre-check with native GHA concurrency functionality #1924

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

Kami
Copy link
Member

@Kami Kami commented Aug 1, 2023

This pull request updates all the workflows and switches from skip-duplicate-actions GHA action to native "concurrency" functionality.

Ability to cancel old and redundant builds is now part of native GHA functionality. Utilizing native functionality allows us to simplify the workflows and remove that pre_job check. It also allows us to get rid of additional write permission which was required by that action.

@Kami Kami added ci/cd github_actions Pull requests that update GitHub Actions code labels Aug 1, 2023
@Kami
Copy link
Member Author

Kami commented Aug 1, 2023

I confirmed the change works as expected (https://github.com/apache/libcloud/actions/runs/5725752694?pr=1924), so I will go ahead and implement it for all the workflows.

"concurrency" functionality.

Concurrency functionality which allows us to cancel redundant builds is
now available natively as part of GHA functionality so we can get rid of
skip duplicate actions action and simplify the workflow.

This way we can also get rid of write permission which was needed by
that action to be able to cancel in progress GHA job runs.
@Kami Kami merged commit dcc519c into apache:trunk Aug 1, 2023
17 checks passed
@Kami Kami added this to the v3.8.0 milestone Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant