Skip to content

Commit 4c2d980

Browse files
authored
Add workflow_dispatch to events that trigger upload PR doc (#466)
1 parent bc09a53 commit 4c2d980

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/upload_pr_documentation.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
runs-on: ubuntu-latest
2424
if: >
2525
(github.event.workflow_run.event == 'pull_request' ||
26-
github.event.workflow_run.event == 'pull_request_target') &&
26+
github.event.workflow_run.event == 'pull_request_target' ||
27+
github.event.workflow_run.event == 'workflow_dispatch') &&
2728
github.event.workflow_run.conclusion == 'success'
2829
2930
steps:
@@ -83,7 +84,7 @@ jobs:
8384
echo "Encountered an invalid commit_sha"
8485
exit 1
8586
fi
86-
87+
8788
content_pr_number=$(cat ./build_dir/pr_number)
8889
if [[ $content_pr_number =~ ^[0-9]+$ ]]; then
8990
echo "pr_number=$content_pr_number" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)