approved-for-ci-run.yml: use our bot (#5216)

## Problem

Pull Requests created by GitHub Actions bot doesn't have access to
secrets, so we need to use our bot for it to auto-trigger a tests run

See previous PRs  #4663, #5210, #5212

## Summary of changes
- Use our bot to create PRs
This commit is contained in:
Alexander Bayandin
2023-09-06 12:55:11 +01:00
committed by GitHub
parent 743933176e
commit da60f69909

View File

@@ -17,7 +17,7 @@ on:
- labeled
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.CI_ACCESS_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
concurrency:
@@ -33,7 +33,6 @@ jobs:
contains(github.event.pull_request.labels.*.name, 'approved-for-ci-run')
runs-on: ubuntu-latest
permissions: write-all
steps:
- run: gh pr --repo "${GITHUB_REPOSITORY}" edit "${PR_NUMBER}" --remove-label "approved-for-ci-run"
@@ -46,7 +45,6 @@ jobs:
contains(github.event.pull_request.labels.*.name, 'approved-for-ci-run')
runs-on: ubuntu-latest
permissions: write-all
steps:
- run: gh pr --repo "${GITHUB_REPOSITORY}" edit "${PR_NUMBER}" --remove-label "approved-for-ci-run"