File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
.github/actions/release_to_prod Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change 55 using : " composite"
66 steps :
77 - name : print out stuff
8- # on pr
9- # echo "${{github.ref}}" -> refs/pull/7/merge
10- # echo "${{github.head_ref}}" -> jblock/gh-debug-1 # but this is only available on `pull_request`, not release
11- # echo "${{github.ref_name}}" -> 7/merge
12- # git rev-parse --abbrev-ref HEAD -> HEAD
138 run : |
149 echo "${{github.event.release.target_commitish}}"
15- echo "${{ toJson(github) }}"
1610 shell : bash
1711
1812 - name : Do some release stuff for main
19- if : github.event.target_commitish == 'main'
13+ if : github.event.release. target_commitish == 'main'
2014 run : |
2115 echo "this is the release script for main"
2216 shell : bash
23-
24-
25- - name : Do some release stuff for a hotfix
26- if : contains(github.event.release.target_commitish, 'hotfix') == true
27- run : |
28- echo "this is the release script for a HOTFIX"
29- shell : bash
30-
31- - name : Warn about other branches
32- if : github.event.release.target_commitish != 'main'
33- run : |
34- echo "Can only release main or hotfix"
35- shell : bash
You can’t perform that action at this time.
0 commit comments