The upload-dev-builds workflow proceeds even if the PR number is empty, creating a subfolder called /pr-/.
Furthermore, the github.event.workflow_run.pull_requests[0].number variable is empty if the source branch is part of a fork.
The workflow should be updated to correctly get the PR number for forks, and to fail the workflow if the PR number is empty, rather than proceeding.
The
upload-dev-buildsworkflow proceeds even if the PR number is empty, creating a subfolder called/pr-/.Furthermore, the
github.event.workflow_run.pull_requests[0].numbervariable is empty if the source branch is part of a fork.The workflow should be updated to correctly get the PR number for forks, and to fail the workflow if the PR number is empty, rather than proceeding.