From 86301c823dac64d427711dd6b99d7ffdd894d2dd Mon Sep 17 00:00:00 2001 From: Mathieu Dutour Date: Mon, 6 Feb 2023 13:16:45 +0100 Subject: [PATCH] Revert "Use `${{github.token}}` as default" (#167) --- README.md | 4 +++- action.yml | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c26ca973d..09774b4aa 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ jobs: - name: Bump version and push tag id: tag_version uses: mathieudutour/github-tag-action@v6.1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Create a GitHub release uses: ncipollo/release-action@v1 with: @@ -28,7 +30,7 @@ jobs: ### 📥 Inputs -- **github_token** _(optional)_ - GitHub token for permission to tag the repo (default: `${{github.token}}`). +- **github_token** _(required)_ - Required for permission to tag the repo. Usually `${{ secrets.GITHUB_TOKEN }}`. - **commit_sha** _(optional)_ - The commit SHA value to add the tag. If specified, it uses this value instead GITHUB_SHA. It could be useful when a previous step merged a branch into github.ref. #### Fetch all tags diff --git a/action.yml b/action.yml index a1fceb2f5..eae936ed1 100644 --- a/action.yml +++ b/action.yml @@ -14,9 +14,8 @@ outputs: description: "The conventional changelog since the previous tag" inputs: github_token: - description: "GitHub token for permission to tag the repo." - required: false - default: ${{ github.token }} + description: "Required for permission to tag the repo." + required: true default_bump: description: "Which type of bump to use when none explicitly provided when commiting to a release branch (default: `patch`)." required: false