Skip to content

Commit 86301c8

Browse files
Revert "Use ${{github.token}} as default" (#167)
1 parent 5bd9038 commit 86301c8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
- name: Bump version and push tag
1919
id: tag_version
2020
uses: mathieudutour/[email protected]
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
2123
- name: Create a GitHub release
2224
uses: ncipollo/release-action@v1
2325
with:
@@ -28,7 +30,7 @@ jobs:
2830
2931
### 📥 Inputs
3032
31-
- **github_token** _(optional)_ - GitHub token for permission to tag the repo (default: `${{github.token}}`).
33+
- **github_token** _(required)_ - Required for permission to tag the repo. Usually `${{ secrets.GITHUB_TOKEN }}`.
3234
- **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.
3335

3436
#### Fetch all tags

action.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ outputs:
1414
description: "The conventional changelog since the previous tag"
1515
inputs:
1616
github_token:
17-
description: "GitHub token for permission to tag the repo."
18-
required: false
19-
default: ${{ github.token }}
17+
description: "Required for permission to tag the repo."
18+
required: true
2019
default_bump:
2120
description: "Which type of bump to use when none explicitly provided when commiting to a release branch (default: `patch`)."
2221
required: false

0 commit comments

Comments
 (0)