Skip to content

Commit 83d167a

Browse files
committed
docs: add troubleshooting section
1 parent 1bd095d commit 83d167a

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

README.md

+19-10
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
uses: actions/checkout@v2
2828
with:
2929
fetch-depth: 0
30+
token: "${{ secrets.GITHUB_TOKEN }}"
3031
- name: Create bump and changelog
3132
uses: commitizen-tools/commitizen-action@master
3233
with:
@@ -35,17 +36,25 @@ jobs:
3536
3637
## Variables
3738
38-
| Name | Description | Default |
39-
| -------------- | ------------------------------------------------------------------------------------------------------------ | ----------- |
40-
| `github_token` | Token for the repo. Can be passed in using \$\{{ secrets.GITHUB_TOKEN }} **required** | - |
41-
| `dry_run` | Run without creating commit, output to stdout | false |
42-
| `repository` | Repository name to push. Default or empty value represents current github repository (\${GITHUB_REPOSITORY}) | current one |
43-
| `branch` | Destination branch to push changes | `master` |
39+
| Name | Description | Default |
40+
| -------------- | ------------------------------------------------------------------------------------- | ----------- |
41+
| `github_token` | Token for the repo. Can be passed in using `${{ secrets.GITHUB_TOKEN }}` **required** | - |
42+
| `dry_run` | Run without creating commit, output to stdout | false |
43+
| `repository` | Repository name to push. Default or empty value represents current github repository | current one |
44+
| `branch` | Destination branch to push changes | `master` |
4445

4546
<!-- | `changelog` | Create changelog when bumping the version | true | -->
4647

47-
If you use `secrets.GITHUB_TOKEN` other actions won't be triggered.
48-
To solve that you will need a personal access token.
49-
Follow the instructions of [github tutorial](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token#creating-a-token) in order
50-
to create one
48+
## Troubleshooting
5149

50+
### Other actions are not triggered when the tag is pushed
51+
52+
This problem occurs because `secrets.GITHUB_TOKEN` does not trigger other
53+
actions [by design][by_design].
54+
55+
To solve it you must use a personal access token in the checkout and the commitizen steps.
56+
57+
Follow the instructions in [commitizen's documentation][cz-docs-ga]
58+
59+
[by_design]: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#example-using-multiple-events-with-activity-types-or-configuration
60+
[cz-docs-ga]: https://commitizen-tools.github.io/commitizen/tutorials/github_actions/

0 commit comments

Comments
 (0)