File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,20 @@ name: Update default CodeQL bundle
2
2
3
3
on :
4
4
release :
5
- types : [prereleased]
5
+ # From https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
6
+ # Note: The prereleased type will not trigger for pre-releases published
7
+ # from draft releases, but the published type will trigger. If you want a
8
+ # workflow to run when stable and pre-releases publish, subscribe to
9
+ # published instead of released and prereleased.
10
+ #
11
+ # From https://github.com/orgs/community/discussions/26281
12
+ # As a work around, in published type workflow, you could add if condition
13
+ # to filter pre-release attribute.
14
+ types : [published]
6
15
7
16
jobs :
8
17
update-bundle :
9
- if : startsWith(github.event.release.tag_name, 'codeql-bundle-')
18
+ if : github.event.release.prerelease && startsWith(github.event.release.tag_name, 'codeql-bundle-')
10
19
runs-on : ubuntu-latest
11
20
steps :
12
21
- name : Dump environment
You can’t perform that action at this time.
0 commit comments