Skip to content

Commit 24464a4

Browse files
authored
event.release.target_commitish?? (#12)
1 parent 004a383 commit 24464a4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/actions/release_to_prod/action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ runs:
1111
# echo "${{github.ref_name}}" -> 7/merge
1212
# git rev-parse --abbrev-ref HEAD -> HEAD
1313
run: |
14-
echo "${{github.event.target_commitish}}"
15-
echo "${{github.target_commitish}}"
14+
echo "${{github.event.release.target_commitish}}"
1615
echo "${{ toJson(github) }}"
1716
shell: bash
1817

@@ -24,13 +23,13 @@ runs:
2423

2524

2625
- name: Do some release stuff for a hotfix
27-
if: contains(github.event.target_commitish, 'hotfix') == true
26+
if: contains(github.event.release.target_commitish, 'hotfix') == true
2827
run: |
2928
echo "this is the release script for a HOTFIX"
3029
shell: bash
3130

3231
- name: Warn about other branches
33-
if: github.event.target_commitish != 'main'
32+
if: github.event.release.target_commitish != 'main'
3433
run: |
3534
echo "Can only release main or hotfix"
3635
shell: bash

0 commit comments

Comments
 (0)