Skip to content

Commit 9e3ae73

Browse files
committed
Use default bakery version for PR builds
The head_ref pattern used by other CI jobs breaks on fork PRs because the fork's branch doesn't exist in the base repo. The PR build job uses the default "main" version instead, which always resolves.
1 parent 913a387 commit 9e3ae73

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ jobs:
137137

138138
uses: "./.github/workflows/bakery-build-pr.yml"
139139
with:
140-
version: ${{ github.head_ref || github.ref_name }}
140+
# Don't pass version — default "main" is correct here. The head_ref
141+
# pattern used by other jobs breaks on fork PRs because the fork's
142+
# branch doesn't exist in posit-dev/images-shared.
141143
context: "./posit-bakery/test/resources/multiplatform/"
142144
dev-versions: include
143145

0 commit comments

Comments
 (0)