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

[CI] Only run one post commit job on a push to a pull request in sycl-devops-pr #16079

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/sycl-post-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ on:
- ./devops/actions/cached_checkout

concurrency:
# Cancel a currently running workflow from the same PR or commit hash.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
# Cancel a currently running workflow from the same PR or commit hash.
# We need to use the user's branch name (which is in different variables
# for pull request events and push events) so that making a PR from a
# sycl-devops-pr branch doesn't cause two postcommit runs.
group: "${{ github.actor }}-${{ github.head_ref || github.ref_name }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think PR's description needs to be copied/summarized here too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, added in latest commit

cancel-in-progress: true

permissions: read-all
Expand Down
Loading