From 4468c50d2e0039be84ea3c4cb7f86d1fdf87d954 Mon Sep 17 00:00:00 2001 From: insolor <2442833+insolor@users.noreply.github.com> Date: Thu, 30 May 2024 13:48:32 +0000 Subject: [PATCH] Cancel job with exit 1 --- .github/workflows/deploy.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b75101b..f0cf991 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,7 +20,6 @@ on: permissions: contents: write - actions: write jobs: prepare: @@ -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