Skip to content

Commit 0dbb855

Browse files
committed
Allow committing from PRs
1 parent b254a56 commit 0dbb855

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/render-docs.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ jobs:
5050
contents: write
5151
steps:
5252
- uses: actions/checkout@v4
53+
if: github.event_name != 'pull_request'
54+
- uses: actions/checkout@v4
55+
if: github.event_name == 'pull_request'
56+
with:
57+
repository: ${{ github.event.pull_request.head.repo.full_name }}
58+
ref: ${{ github.event.pull_request.head.ref }}
59+
5360
- name: Install doxygen dependencies
5461
shell: bash
5562
run: |
@@ -96,7 +103,7 @@ jobs:
96103
${{ inputs.debug == true && '--debug ' || '' }}
97104
98105
- name: Commit Docs
99-
if: inputs.commit
106+
if: inputs.commit == true
100107
uses: EndBug/add-and-commit@v9
101108
with:
102109
add: "${{ inputs.target-path }}"

0 commit comments

Comments
 (0)