Skip to content

Commit 40edb59

Browse files
committed
git: allow publish job workflow to run if triggered by another workflow
1 parent 88f3949 commit 40edb59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ jobs:
395395
docs-publish:
396396
name: "Publish"
397397
if: |
398-
github.ref == 'refs/heads/main' &&
398+
(github.ref == 'refs/heads/main' || github.event_name == 'workflow_run') &&
399399
(needs.docs-build-pr-push.outputs.has_changes == 'true' || needs.docs-build-workflow-run.outputs.has_changes == 'true')
400400
runs-on: ubuntu-latest
401401
needs: [docs-build-pr-push, docs-build-workflow-run]

0 commit comments

Comments
 (0)