Skip to content

Commit adcec6f

Browse files
committed
set github.token
Signed-off-by: cobalt <61329810+cobaltt7@users.noreply.github.com>
1 parent 08d9623 commit adcec6f

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/cut_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
- name: Edit release
4444
run: gh release edit "$VERSION" -F latest-changelog.md --draft=false
4545
env:
46+
GITHUB_TOKEN: ${{ github.token }}
4647
VERSION: ${{ steps.version.outputs.version }}
4748

4849
update-stable:

.github/workflows/prepare_release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
gh release create "$VERSION" -d -t "$VERSION" \
5151
${{ case(inputs.Prerelease_Version == '', '', '-p') }}
5252
env:
53+
GITHUB_TOKEN: ${{ github.token }}
5354
VERSION: ${{ steps.version.outputs.version }}
5455

5556
- name: Commit changes
@@ -79,17 +80,17 @@ jobs:
7980
-l "ci: skip news" -l "C: maintenance" \
8081
-a $USER
8182
env:
82-
VERSION: ${{ steps.version.outputs.version }}
8383
GITHUB_TOKEN: ${{ github.token }}
8484
USER: ${{ github.triggering_actor }}
85+
VERSION: ${{ steps.version.outputs.version }}
8586

8687
- name: Edit release PR
8788
if: github.event_name == 'push'
8889
run: |
8990
gh pr edit "$BRANCH" -F description.md
9091
env:
91-
BRANCH: ${{ env.branch }}
9292
GITHUB_TOKEN: ${{ github.token }}
93+
BRANCH: ${{ env.branch }}
9394

9495
binaries:
9596
name: build binaries (${{ matrix.os }})
@@ -152,5 +153,5 @@ jobs:
152153
run: gh release upload "$VERSION" dist/${{ matrix.asset_name }} --clobber
153154
shell: bash
154155
env:
155-
GH_TOKEN: ${{ github.token }}
156+
GITHUB_TOKEN: ${{ github.token }}
156157
VERSION: ${{ needs.prepare.outputs.version }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
!startsWith(matrix.python-version, 'pypy')
7979
uses: AndreMiras/coveralls-python-action@ac868b9540fad490f7ca82b8ca00480fd751ed19
8080
with:
81-
github-token: ${{ secrets.GITHUB_TOKEN }}
81+
github-token: ${{ github.token }}
8282
parallel: true
8383
flag-name: py${{ matrix.python-version }}-${{ matrix.os }}
8484
debug: true

0 commit comments

Comments
 (0)