Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit acc65f1

Browse files
committedDec 12, 2020
chore: update
1 parent e51b7ca commit acc65f1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed
 

‎.github/workflows/main.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ on:
99
description: "deploy/stop/start"
1010
default: "deploy"
1111

12+
env:
13+
actions: ${{ github.event.inputs.actions }}
14+
1215
jobs:
1316
heroku-deploy:
14-
if: ${{ github.event.inputs.actions == 'deploy' }}
17+
if: ${{ actions == 'deploy' }}
1518
runs-on: ubuntu-latest
1619
steps:
1720
- uses: actions/checkout@v2
@@ -30,7 +33,7 @@ jobs:
3033
NODE_ENV: production
3134
SECRET_KEY: ${{ secrets.MY_SECRET_KEY }}
3235
stop:
33-
if: ${{ github.event.inputs.actions == 'start' || github.event.inputs.actions == 'stop' }}
36+
if: ${{ actions == 'start' || actions == 'stop' }}
3437
runs-on: ubuntu-latest
3538
steps:
3639
- uses: actions/checkout@v2
@@ -41,7 +44,7 @@ jobs:
4144
heroku_email: ${{secrets.EMAIL}}
4245
justlogin: true
4346
- run: |
44-
echo ${{ github.event.inputs.actions }}
45-
if [[ ${{ github.event.inputs.actions }} == 'stop' ]]; then echo "stop" && echo "dd"; fi
46-
if [[ ${{ github.event.inputs.actions }} == 'start' ]]; then echo "start" && echo "dd"; fi
47+
echo ${{ actions }}
48+
if [[ ${{ actions }} == 'stop' ]]; then echo "stop" && echo "dd"; fi
49+
if [[ ${{ actions }} == 'start' ]]; then echo "start" && echo "dd"; fi
4750
heroku auth:whoami

0 commit comments

Comments
 (0)
Please sign in to comment.