Skip to content

Commit fb85871

Browse files
authored
Restrict action to internal PRs (#13936)
1 parent 8d3978e commit fb85871

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/on-pr-opened-updated.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,16 @@ jobs:
161161
env:
162162
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
163163
remove_label:
164-
if: github.repository == 'JabRef/jabref'
164+
if: >
165+
(github.repository == 'JabRef/jabref') &&
166+
(github.event.pull_request.head.repo.full_name == 'JabRef/jabref')
165167
name: 'Remove label "status: changes-required"'
166168
runs-on: ubuntu-latest
167169
steps:
168170
- run: |
169171
gh issue --repo ${{ github.repository }} edit ${{ github.event.pull_request.number }} --remove-label "status: changes-required"
172+
env:
173+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
170174
upload-pr-number:
171175
if: github.repository == 'JabRef/jabref'
172176
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)