Skip to content

Commit

Permalink
Change to GH_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
collijk committed Dec 27, 2023
1 parent 6e7a285 commit f272709
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ cruft update
Required for publishing the package to [PyPI](https://pypi.org/). You can generate a token by logging
into PyPI and navigating to _Add API token_ in your [account settings](https://pypi.org/manage/account/).

#### `GITHUB_TOKEN`
#### `GH_TOKEN`

This cookiecutter template needs repository access for the following operations:

Expand All @@ -97,7 +97,7 @@ This cookiecutter template needs repository access for the following operations:

To enable these features, you need to create a
[personal access token](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token)
and use it as the value for `GITHUB_TOKEN` secret. When creating the access token, the
and use it as the value for `GH_TOKEN` secret. When creating the access token, the
following permissions have to be granted:

* repo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Create Pull Request
env:
# a PAT is required to be able to update workflows
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
if: ${{ steps.changes.outputs.changed > 0 && env.GITHUB_TOKEN != 0 }}
uses: peter-evans/create-pull-request@v5
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
# behaviour if PR already exists: https://github.com/marketplace/actions/create-pull-request#action-behaviour
- name: Create Pull Request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
if: ${{ steps.check_for_outdated_dependencies.outputs.body != 0 && env.GITHUB_TOKEN != 0 }}
uses: peter-evans/create-pull-request@v5
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_TOKEN }}
- uses: ./.github/actions/python-poetry-env
- name: Update version
id: updated_version
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Create a draft release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
tag_name: ${{ steps.updated_version.outputs.version }}
release_name: Release ${{ steps.updated_version.outputs.version }}
Expand Down

0 comments on commit f272709

Please sign in to comment.