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

[Hacktoberfest] Use the concurrency keyword to limit the concurrency of the github action's workflow run. #772

Closed
ahmetoz opened this issue Sep 24, 2021 · 1 comment · Fixed by #789
Labels
Hacktoberfest Hacktoberfest 2021

Comments

@ahmetoz
Copy link
Contributor

ahmetoz commented Sep 24, 2021

Situation
To limit the github action workflow concurrency we are using a github action step from https://github.com/softprops/turnstyle

- uses: actions/checkout@v2
- name: serializing workflow runs
uses: softprops/turnstyle@v1
with:
same-branch-only: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This is needed because running build in parallel causing data conflicts related to the integration tests.

Complication
While we are building the first action flow, github was not supporting this feature, but now seems github introduced concurrency keyword to limit the concurrency in the action.
See: https://github.blog/changelog/2021-04-19-github-actions-limit-workflow-run-or-job-concurrency/

Resolution
Use the concurrency keyword to limit the concurrency of the workflow run.

Ensure you have changed all workflows in the folder: https://github.com/commercetools/commercetools-sync-java/tree/master/.github/workflows

CONTRIBUTING, CODE_OF_CONDUCT

@ahmetoz ahmetoz added the Hacktoberfest Hacktoberfest 2021 label Sep 24, 2021
@ahmetoz ahmetoz changed the title [Hactoberfest] Use the concurrency keyword to limit the concurrency of the github action's workflow run. [Hacktoberfest] Use the concurrency keyword to limit the concurrency of the github action's workflow run. Sep 24, 2021
@ahmetoz
Copy link
Contributor Author

ahmetoz commented Oct 1, 2021

Issue is resolved.

@ahmetoz ahmetoz closed this as completed Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest Hacktoberfest 2021
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant