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 5c1f793 commit 0ecb443Copy full SHA for 0ecb443
1 file changed
.github/workflows/pr-publish.yaml
@@ -79,9 +79,16 @@ jobs:
79
echo "Error: Invalid all_tags format: $ALL_TAGS"
80
exit 1
81
fi
82
-
+ # Reconstruct them from the validated PR_NUMBER/SHORT_SHA so this privileged
83
+ PRIMARY_TAG="pr-${PR_NUMBER}"
84
+ ALL_TAGS="${PRIMARY_TAG},pr-${PR_NUMBER}-${SHORT_SHA}"
85
BUILD_SKIPPED=$(jq -r '.build_skipped // "false"' /tmp/pr-metadata/pr-info.json)
86
87
+ if ! [[ "$BUILD_SKIPPED" =~ ^(true|false)$ ]]; then
88
+ echo "Error: Invalid build_skipped value: $BUILD_SKIPPED"
89
+ exit 1
90
+ fi
91
+
92
echo "pr_number=${PR_NUMBER}" >> $GITHUB_OUTPUT
93
echo "commit_sha=${COMMIT_SHA}" >> $GITHUB_OUTPUT
94
echo "short_sha=${SHORT_SHA}" >> $GITHUB_OUTPUT
0 commit comments