We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25367f commit f7bceb8Copy full SHA for f7bceb8
1 file changed
.github/workflows/upload-dev-build.yml
@@ -23,7 +23,9 @@ jobs:
23
(
24
github.event_name == 'workflow_run' &&
25
github.event.workflow_run.event == 'pull_request' &&
26
- github.event.workflow_run.conclusion == 'success'
+ github.event.workflow_run.conclusion == 'success' &&
27
+ # Only trigger for branches in the main repo, not forks
28
+ github.event.workflow_run.head_repository.full_name == github.repository
29
)
30
steps:
31
- name: Get required metadata (PR number, commit SHA, workflow run ID containing artifacts)
@@ -49,7 +51,7 @@ jobs:
49
51
exit 1
50
52
fi
53
- # If PR_NUM is empty (this is the case for forks) get PR number using SHA
54
+ # If PR_NUM is empty, get PR number using SHA
55
if [ -z "${PR_NUM}" ]; then
56
PR_NUM=$(gh pr list --search "sha:${SHA}" --state open --json number --jq '.[0].number')
57
0 commit comments