From d614d8129bc260e31660564f16d7731feee5fef7 Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Fri, 10 Jan 2025 13:56:16 +0100 Subject: [PATCH] fix workflow --- .github/workflows/cd.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 9832d67..bbe3691 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -19,7 +19,11 @@ jobs: steps: - name: Cancel job if: ${{ !(startsWith(github.ref, format('refs/tags/{0}', matrix.image)) || github.ref == 'refs/heads/main') }} - run: exit 0 + env: + GH_TOKEN: ${{ secrets. GITHUB_TOKEN }} + run: | + gh run cancel ${{ github.run_id }} + gh run watch ${{ github.run_id }} - name: Checkout uses: actions/checkout@v4 - name: Docker meta