forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 998 Bytes
/
Copy pathreapply-ci-trusted-author.yml
File metadata and controls
29 lines (25 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Reapply CI-trusted-author label
# We want to use NordicBuilder instead of github-actions[bot] user
# github-actions[bot] is not trusted collaborator and labels added by it does not trigger Jenkins builds
on:
pull_request_target:
types: [opened, reopened, synchronize]
permissions:
contents: read
pull-requests: write
jobs:
reapply_label:
name: Reapply label
if: ${{ contains(github.event.*.labels.*.name, 'CI-trusted-author') }}
runs-on: ubuntu-24.04
steps:
- name: Remove CI-trusted-author label
run: gh pr edit ${{ github.event.pull_request.number }} --remove-label "CI-trusted-author"
env:
GH_TOKEN: ${{ secrets.NCS_JENKINS_TOKEN }}
GH_REPO: ${{ github.repository }}
- name: Add CI-trusted-author label
run: gh pr edit ${{ github.event.pull_request.number }} --add-label "CI-trusted-author"
env:
GH_TOKEN: ${{ secrets.NCS_JENKINS_TOKEN }}
GH_REPO: ${{ github.repository }}