Fix Gitea Actions promotion output
This commit is contained in:
@@ -66,10 +66,10 @@ jobs:
|
||||
run: |
|
||||
git fetch --no-tags origin main
|
||||
if [ "$(git rev-parse FETCH_HEAD)" = "${COMMIT_SHA}" ]; then
|
||||
echo "promote=true" >> "${GITEA_OUTPUT}"
|
||||
echo "promote=true" >> "${GITHUB_OUTPUT}"
|
||||
else
|
||||
echo "This build is no longer current main; skipping promotion"
|
||||
echo "promote=false" >> "${GITEA_OUTPUT}"
|
||||
echo "promote=false" >> "${GITHUB_OUTPUT}"
|
||||
fi
|
||||
- name: Check out GitOps repository
|
||||
if: steps.current-main.outputs.promote == 'true'
|
||||
|
||||
Reference in New Issue
Block a user