diff --git a/README.md b/README.md index 7a8bbdf..e2a93a5 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ This library runs with GitHub Actions. If you feel that the example grammar belo ```yaml uses: marocchino/sticky-pull-request-comment@v2 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} message: | Release ${{ github.sha }} to ``` @@ -156,7 +155,7 @@ with: ### `GITHUB_TOKEN` -**Required** set secrets.GITHUB_TOKEN here +**Optional**, typically set secrets.GITHUB_TOKEN. If not set, this will use `${{ github.token }}`. ## Outputs diff --git a/action.yml b/action.yml index 9d7f9b3..ac08a5e 100644 --- a/action.yml +++ b/action.yml @@ -27,8 +27,8 @@ inputs: description: "other repo name limited use on github enterprise. If not set, the current repo is used by default. Note that When you trying changing a repo, be aware that GITHUB_TOKEN should also use that repo's." required: false GITHUB_TOKEN: - description: "set secrets.GITHUB_TOKEN here" - required: true + description: 'The GitHub access token (e.g. secrets.GITHUB_TOKEN) used to create or update the comment. This defaults to {{ github.token }}.' + default: '${{ github.token }}' runs: using: "node12" main: "dist/index.js"