Skip to content

Commit 64e1432

Browse files
authored
simplify (#13)
1 parent 24464a4 commit 64e1432

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

.github/actions/release_to_prod/action.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,12 @@ runs:
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

0 commit comments

Comments
 (0)