Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add a comment to concurrency section.

Pavel Balashou240192b83c8c
diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml
index 73a9a7495c2..fd1f19aa188 100644
--- a/.github/workflows/test-core.yml
+++ b/.github/workflows/test-core.yml
@@ -71,6 +71,10 @@ jobs:
node-version: '14'
- run: ./script/api/validate_spec
+# github.head_ref is only availabe in PR context and if it is absent then github.run_id
+# is used . And github.run_id is unique for each workflow run. So, this option makes
+# sure that there is only one build running for a pull request and the build is attached
+# to the last commit of the PR.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true