Skip to content

Commit

Permalink
Fix: Skip vote when jobs are run locally
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
askb committed Mar 28, 2024
1 parent 7c30179 commit 31c22b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 31c22b5

Please sign in to comment.