From 110a9a2c3010386476f7fd162f1f7d31a4b206fb Mon Sep 17 00:00:00 2001 From: Rok Roskar Date: Mon, 3 Feb 2020 22:22:23 +0100 Subject: [PATCH] docs: GITHUB_RUN_ID set by default although this is not documented in the github api :eyeroll: --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 9923a20..705cbca 100644 --- a/README.md +++ b/README.md @@ -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` and `GITHUB_RUN_ID` environment variables: +set the `GITHUB_TOKEN` environment variable: ## Example usage @@ -18,7 +18,6 @@ set the `GITHUB_TOKEN` and `GITHUB_RUN_ID` environment variables: uses: rokroskar/workflow-run-cleanup-action env: GITHUB_TOKEN: ${{ secret.GITHUB_TOKEN }} - GITHUB_RUN_ID: ${{ github.run_id }} ``` You may want to disable this action from running on tags or master, @@ -36,7 +35,6 @@ 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: