Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zizifn authored Dec 12, 2020
1 parent 5c7d8ca commit 03fb31d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:

jobs:
heroku-deploy:
if: ${{ $actions == 'deploy' }}
if: ${{ env.actions == 'deploy' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -33,7 +33,7 @@ jobs:
NODE_ENV: production
SECRET_KEY: ${{ secrets.MY_SECRET_KEY }}
stop:
if: ${{ $actions == 'start' || $actions == 'stop' }}
if: ${{ env.actions == 'start' || env.actions == 'stop' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -44,7 +44,7 @@ jobs:
heroku_email: ${{secrets.EMAIL}}
justlogin: true
- run: |
echo ${{ actions }}
if [[ ${{ actions }} == 'stop' ]]; then echo "stop" && echo "dd"; fi
if [[ ${{ actions }} == 'start' ]]; then echo "start" && echo "dd"; fi
echo ${{ env.actions }}
if [[ ${{ env.actions }} == 'stop' ]]; then echo "stop" && echo "dd"; fi
if [[ ${{ env.actions }} == 'start' ]]; then echo "start" && echo "dd"; fi
heroku auth:whoami

0 comments on commit 03fb31d

Please sign in to comment.