File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Deployment pipeline
3
3
env :
4
4
IS_PUSH : ${{ github.event_name == 'push' }}
5
5
HAS_SKIP_MESSAGE : ${{ contains(join(github.event.commits.*.message), '#skip') }}
6
+ SHOULD_DEPLOY : ${{ github.env.IS_PUSH == 'true' && github.env.HAS_SKIP_MESSAGE != 'true' }}
6
7
7
8
on :
8
9
push :
@@ -29,12 +30,12 @@ jobs:
29
30
- name : Test
30
31
run : npm run test
31
32
- name : Deploy app
32
- if : ${{ env.IS_PUSH && !env.HAS_SKIP_MESSAGE }}
33
+ if : ${{ env.SHOULD_DEPLOY == 'true' }}
33
34
run : flyctl deploy --remote-only
34
35
env :
35
36
FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
36
37
tag_release :
37
- if : ${{ github.env.IS_PUSH && !github.env.HAS_SKIP_MESSAGE }}
38
+ if : ${{ github.env.SHOULD_DEPLOY == 'true' }}
38
39
needs : [simple_deployment_pipeline]
39
40
runs-on : ubuntu-20.04
40
41
steps :
You can’t perform that action at this time.
0 commit comments