Skip to content

Commit

Permalink
Add content: write rights for backporting job (#7826)
Browse files Browse the repository at this point in the history
* Do not run primers tests on backporting branches

* Add content: write rights for backporting job

We need it to push to the backporting branch after cherry-picking

See #7810

* [github actions] Add a version comment so the tag is clearer

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
  • Loading branch information
Pierre-Sassoulas and cdce8p committed Nov 24, 2022
1 parent f7d681b commit 87fedef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/backport.yml
Expand Up @@ -7,6 +7,7 @@ on:

permissions:
pull-requests: write
content: write

jobs:
backport:
Expand All @@ -23,6 +24,6 @@ jobs:
)
)
steps:
- uses: tibdex/backport@2e217641d82d02ba0603f46b1aeedefb258890ac
- uses: tibdex/backport@2e217641d82d02ba0603f46b1aeedefb258890ac # v2.0.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/primer-test.yaml
Expand Up @@ -4,14 +4,14 @@ on:
push:
branches:
- main
- "maintenance/**"
pull_request:
paths:
- "pylint/**"
- "tests/primer/**"
- "requirements*"
- ".github/workflows/primer-test.yaml"

branches:
- main
env:
CACHE_VERSION: 1
KEY_PREFIX: venv
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/primer_run_pr.yaml
Expand Up @@ -16,6 +16,8 @@ on:
- "!.github/workflows/primer_run_main.yaml"
- "!.github/workflows/primer_comment.yaml"
- "!tests/primer/packages_to_prime.json"
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down

0 comments on commit 87fedef

Please sign in to comment.