From 31c22b5322852f8cd17a94d24c94513cefaa1574 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Thu, 28 Mar 2024 17:38:27 +1000 Subject: [PATCH] Fix: Skip vote when jobs are run locally Act adds a special environment variable ACT that can be used to skip a step that you don't want to run locally. Ref: https://nektosact.com/usage/index.html#skipping-steps Signed-off-by: Anil Belur --- action.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yaml b/action.yaml index 64da5d7..bc88539 100644 --- a/action.yaml +++ b/action.yaml @@ -104,6 +104,7 @@ runs: echo "STATUS=CANCELLED" >> "$GITHUB_ENV" - name: Vote + if: ${{ !env.ACT }} shell: bash run: | MESSAGE="${STATUS}: ${{ github.server_url }}/${{ github.repository}}/actions/runs/${{ github.run_id }}"