Skip to content

Commit

Permalink
docs: add note to the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rokroskar committed Feb 3, 2020
1 parent 609b6e0 commit 73f6e1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GitHub actions.

None. The action uses the GitHub action environment variables
to obtain the workflow name and branch. You must, however,
set the `GITHUB_TOKEN` environment variable.
set the `GITHUB_TOKEN` and `GITHUB_RUN_ID` environment variables:

## Example usage

Expand All @@ -36,6 +36,7 @@ on:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GITHUB_RUN_ID: ${{ github.run_id }}
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
...
other-jobs:
Expand Down

0 comments on commit 73f6e1b

Please sign in to comment.