Skip to content

Commit

Permalink
Cancel run, if AWS_KEY_ID is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed May 30, 2024
1 parent 1547bbb commit 9526367
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ jobs:
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Check credentials
env:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
if: ${{ env.aws_key_id == '' }}
run: gh run cancel ${{ github.run_id }}

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

0 comments on commit 9526367

Please sign in to comment.