-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add "concurrency" to GitHub Actions #6621
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -8,6 +8,10 @@ on: | |||||||||||||
permissions: | ||||||||||||||
issues: write | ||||||||||||||
|
||||||||||||||
concurrency: | ||||||||||||||
group: ${{ github.workflow }}-${{ github.ref }} | ||||||||||||||
cancel-in-progress: true | ||||||||||||||
|
||||||||||||||
jobs: | ||||||||||||||
Comment on lines
+11
to
15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
I don't think this is necessary, as stale only runs once a day. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This and But I've no strong opinion either way. |
||||||||||||||
stale: | ||||||||||||||
if: github.repository_owner == 'python-pillow' | ||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,4 +1,5 @@ | ||||||||||||||
name: Tidelift Align | ||||||||||||||
|
||||||||||||||
on: | ||||||||||||||
schedule: | ||||||||||||||
- cron: "30 2 * * *" # daily at 02:30 UTC | ||||||||||||||
|
@@ -15,6 +16,10 @@ on: | |||||||||||||
permissions: | ||||||||||||||
contents: read | ||||||||||||||
|
||||||||||||||
concurrency: | ||||||||||||||
group: ${{ github.workflow }}-${{ github.ref }} | ||||||||||||||
cancel-in-progress: true | ||||||||||||||
|
||||||||||||||
jobs: | ||||||||||||||
Comment on lines
+19
to
23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
I don't think this is necessary, as Tidelift Align only runs once a day. |
||||||||||||||
build: | ||||||||||||||
if: github.repository_owner == 'python-pillow' | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to give thoughts on this, but... I kind of don't want to cancel the release drafter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't really matter as it only takes about 15s, but it's safe to cancel as we only need it to run once:
when it runs it looks at the current state of merged PRs and overwrites the previous draft.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although two different runs from two different merges will have different
${{ github.ref }}
so won't be cancellable.However, manual triggers via
workflow_dispatch
could have the sameref
. Again, no strong opinion either way for this.