Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 82113b9

Browse files
committed
ci: use github token by default
Set `${{ github.token }}` as the default value for `github_token` input. This is the common practice, examples: * https://github.com/actions/checkout/blob/main/action.yml#L24 * astral-sh/setup-uv#61
1 parent 1f11eb2 commit 82113b9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,9 @@ jobs:
5252
uses: actions/checkout@v3
5353
with:
5454
fetch-depth: 0
55-
token: "${{ secrets.GITHUB_TOKEN }}"
5655
- id: cz
5756
name: Create bump and changelog
5857
uses: commitizen-tools/commitizen-action@master
59-
with:
60-
github_token: ${{ secrets.GITHUB_TOKEN }}
6158
- name: Print Version
6259
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
6360
```
@@ -66,7 +63,7 @@ jobs:
6663
6764
| Name | Description | Default |
6865
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
69-
| `github_token` | Token for the repo. Can be passed in using `${{ secrets.GITHUB_TOKEN }}`. Required if `push: true` | - |
66+
| `github_token` | Token for the repo. Can be passed in using `${{ secrets.GITHUB_TOKEN }}`if your want to use a custom PAT | `${{ github.token }}` |
7067
| `dry_run` | Run without creating commit, output to stdout | false |
7168
| `repository` | Repository name to push. Default or empty value represents current github repository | current one |
7269
| `branch` | Destination branch to push changes | Same as the one executing the action by default |

‎action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ inputs:
4444
github_token:
4545
description: 'Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}'
4646
required: false
47+
default: ${{ github.token }}
4748
repository:
4849
description: 'Repository name to push. Default or empty value represents current github repository (${GITHUB_REPOSITORY})'
4950
default: ''

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /