From a501518a26fa854e62615b2f22285407266ceaaf Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 8 Oct 2022 00:58:51 +0300 Subject: [PATCH] Revert "ci: fix PR not triggering workflows by switching back to pytestbot access token" --- .github/workflows/backport.yml | 2 +- .github/workflows/prepare-release-pr.yml | 4 ++-- .github/workflows/update-plugin-list.yml | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index d007d323d..f7840d537 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -48,4 +48,4 @@ jobs: --title "${subject}" \ --body "Backport of PR #${{ github.event.number }} to $target_branch branch. PR created by backport workflow." env: - GITHUB_TOKEN: ${{ secrets.CHATOPS }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/prepare-release-pr.yml b/.github/workflows/prepare-release-pr.yml index 4f90662e0..429834b3f 100644 --- a/.github/workflows/prepare-release-pr.yml +++ b/.github/workflows/prepare-release-pr.yml @@ -44,9 +44,9 @@ jobs: - name: Prepare release PR (minor/patch release) if: github.event.inputs.major == 'no' run: | - tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ secrets.CHATOPS }} --prerelease='${{ github.event.inputs.prerelease }}' + tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ github.token }} --prerelease='${{ github.event.inputs.prerelease }}' - name: Prepare release PR (major release) if: github.event.inputs.major == 'yes' run: | - tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ secrets.CHATOPS }} --major --prerelease='${{ github.event.inputs.prerelease }}' + tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ github.token }} --major --prerelease='${{ github.event.inputs.prerelease }}' diff --git a/.github/workflows/update-plugin-list.yml b/.github/workflows/update-plugin-list.yml index f4fb81fda..193469072 100644 --- a/.github/workflows/update-plugin-list.yml +++ b/.github/workflows/update-plugin-list.yml @@ -38,7 +38,7 @@ jobs: run: python scripts/update-plugin-list.py - name: Create Pull Request - uses: peter-evans/create-pull-request@671dc9c9e0c2d73f07fa45a3eb0220e1622f0c5f + uses: peter-evans/create-pull-request@2455e1596942c2902952003bbb574afbbe2ab2e6 with: commit-message: '[automated] Update plugin list' author: 'pytest bot ' @@ -47,4 +47,3 @@ jobs: branch-suffix: short-commit-hash title: '[automated] Update plugin list' body: '[automated] Update plugin list' - token: ${{ secrets.CHATOPS }}