From dfbecc29beaf3066f81fc43efa8fc3ff7342f77a Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 9 May 2024 16:17:30 -0400 Subject: [PATCH] Add missing ref fallback in publish action --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fd0577b923..f38a4d8a32 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }}