Add missing ref fallback in publish action

This commit is contained in:
Bill Thornton
2024-05-09 16:17:30 -04:00
parent f2a6ac3946
commit dfbecc29be

View File

@@ -73,7 +73,7 @@ jobs:
- pr-context
with:
branch: ${{ needs.pr-context.outputs.branch }}
branch: ${{ needs.pr-context.outputs.branch || github.ref_name }}
commit: ${{ needs.pr-context.outputs.commit != '' && needs.pr-context.outputs.commit || github.event.workflow_run.head_sha }}
preview_url: ${{ needs.publish.outputs.url }}
build_workflow_run_id: ${{ github.event.workflow_run.id }}