Skip to content

Commit 2df0d96

Browse files
committed
ci: fix PR not triggering workflows by switching back to pytestbot access token
The builtin actions token is not allowed to trigger further workflows. So when we create a PR using that token, the PR checks don't run, and a maintainer must close & open the PR to make them run. This is quite annoying, so switch back to the "machine user" approach. Fixes #9554.
1 parent 4677580 commit 2df0d96

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ jobs:
4848
--title "${subject}" \
4949
--body "Backport of PR #${{ github.event.number }} to $target_branch branch. PR created by backport workflow."
5050
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
GITHUB_TOKEN: ${{ secrets.CHATOPS }}

.github/workflows/prepare-release-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
- name: Prepare release PR (minor/patch release)
4545
if: github.event.inputs.major == 'no'
4646
run: |
47-
tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ github.token }} --prerelease='${{ github.event.inputs.prerelease }}'
47+
tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ secrets.CHATOPS }} --prerelease='${{ github.event.inputs.prerelease }}'
4848
4949
- name: Prepare release PR (major release)
5050
if: github.event.inputs.major == 'yes'
5151
run: |
52-
tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ github.token }} --major --prerelease='${{ github.event.inputs.prerelease }}'
52+
tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ secrets.CHATOPS }} --major --prerelease='${{ github.event.inputs.prerelease }}'

.github/workflows/update-plugin-list.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: python scripts/update-plugin-list.py
3939

4040
- name: Create Pull Request
41-
uses: peter-evans/create-pull-request@2455e1596942c2902952003bbb574afbbe2ab2e6
41+
uses: peter-evans/create-pull-request@671dc9c9e0c2d73f07fa45a3eb0220e1622f0c5f
4242
with:
4343
commit-message: '[automated] Update plugin list'
4444
author: 'pytest bot <[email protected]>'
@@ -47,3 +47,4 @@ jobs:
4747
branch-suffix: short-commit-hash
4848
title: '[automated] Update plugin list'
4949
body: '[automated] Update plugin list'
50+
token: ${{ secrets.CHATOPS }}

0 commit comments

Comments
 (0)