From 903618b8ac72aebcc09cf1252242927c349435f3 Mon Sep 17 00:00:00 2001 From: Jonathan Yu Date: Sun, 21 Mar 2021 20:33:26 +0000 Subject: [PATCH] feat: apply GitHub token by default --- README.md | 3 +-- action.yml | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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..c361d33 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"