Skip to content

Commit

Permalink
Cancel job with exit 1
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed May 30, 2024
1 parent 5df570f commit 4468c50
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ on:

permissions:
contents: write
actions: write

jobs:
prepare:
Expand Down Expand Up @@ -70,11 +69,8 @@ jobs:
- name: Check credentials
env:
AWS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ env.AWS_KEY_ID == '' }}
run: |
gh run cancel ${{ github.run_id }}
gh run watch ${{ github.run_id }}
run: exit 1

- name: Download artifact
uses: actions/download-artifact@v3
Expand Down

0 comments on commit 4468c50

Please sign in to comment.