Skip to content

Commit

Permalink
explicit repository to target another one
Browse files Browse the repository at this point in the history
+ grant pull request write permission
  • Loading branch information
Vrixyz committed Nov 21, 2024
1 parent 60ef345 commit b8ce959
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/diff_user_guides.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Compare generated user guides

permissions:
pull-requests: write

on:
pull_request:
paths:
Expand All @@ -14,6 +17,7 @@ jobs:
- name: Checkout PR branch
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }} # PR repository
ref: ${{ github.head_ref }} # PR branch

- name: Generate files for PR branch
Expand All @@ -26,7 +30,8 @@ jobs:
- name: Checkout target branch
uses: actions/checkout@v3
with:
ref: ${{ github.base_ref }}
repository: ${{ github.event.pull_request.base.repo.full_name }} # Upstream repository
ref: ${{ github.base_ref }} # Target branch

- name: Generate files for target branch
run: |
Expand Down

0 comments on commit b8ce959

Please sign in to comment.