We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52c3e7a commit f718b6cCopy full SHA for f718b6c
.github/actions/release_to_prod/action.yml
@@ -4,7 +4,21 @@ description: "Pretend this released to production"
4
runs:
5
using: "composite"
6
steps:
7
- - name: Do some release stuff
+ - name: Do some release stuff for main
8
+ if: github.ref == 'refs/heads/main'
9
run: |
- echo "this is the release script"
10
+ echo "this is the release script for main"
11
+ shell: bash
12
+
13
14
+ - name: Do some release stuff for a hotfix
15
+ if: contains(github.ref, 'hotfix')
16
+ run: |
17
+ echo "this is the release script for a HOTFIX"
18
19
20
+ - name: Warn about other branches
21
+ if: !contains(github.ref, 'hotfix') && github.ref != 'refs/head/main'
22
23
+ echo "Can only release main or hotfix"
24
shell: bash
0 commit comments