File tree Expand file tree Collapse file tree 1 file changed +7
-19
lines changed Expand file tree Collapse file tree 1 file changed +7
-19
lines changed Original file line number Diff line number Diff line change 11name : ' Publish Immutable Action Version'
22
33on :
4- release :
5- types : [published]
4+ push :
5+ tags :
6+ # Match version tags, but not the major version tags.
7+ - ' v[0-9]+.**'
68
79defaults :
810 run :
1719 packages : write
1820
1921 steps :
20- - name : Check release name
21- id : check
22- env :
23- RELEASE_NAME : ${{ github.event.release.name }}
24- run : |
25- echo "Release name: ${{ github.event.release.name }}"
26- if [[ $RELEASE_NAME == v* ]]; then
27- echo "This is a CodeQL Action release. Create an Immutable Action"
28- echo "is-action-release=true" >> $GITHUB_OUTPUT
29- else
30- echo "This is a CodeQL Bundle release. Do not create an Immutable Action"
31- echo "is-action-release=false" >> $GITHUB_OUTPUT
32- fi
33- - name : Checking out
34- if : steps.check.outputs.is-action-release == 'true'
22+ - name : Checkout repository
3523 uses : actions/checkout@v5
36- - name : Publish
37- if : steps.check.outputs.is-action-release == 'true'
24+
25+ - name : Publish immutable release
3826 id : publish
3927 uses : actions/publish-immutable-action@v0.0.4
You can’t perform that action at this time.
0 commit comments