schutzbot: fix updating github status

Fixes mistake in copying over from osbuild-composer.
This commit is contained in:
Sanne Raymaekers 2025-02-25 12:34:11 +01:00 committed by Klara Simickova
parent f5901a96ee
commit dd80a1757c

View file

@ -36,13 +36,13 @@ curl \
-u "${SCHUTZBOT_LOGIN}" \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/osbuild/osbuild-composer/statuses/${CI_COMMIT_SHA}" \
"https://api.github.com/repos/osbuild/image-builder-frontend/statuses/${CI_COMMIT_SHA}" \
-d '{"state":"'"${GITHUB_NEW_STATE}"'", "description": "'"${GITHUB_NEW_DESC}"'", "context": "'"${CONTEXT}"'", "target_url": "'"${CI_PIPELINE_URL}"'"}'
# ff release branch on github if this ran on main
if [ "$CI_COMMIT_BRANCH" = "main" ] && [ "$GITHUB_NEW_STATE" = "success" ]; then
if [ ! -d "release-ff-clone" ]; then
git clone --bare "https://${SCHUTZBOT_LOGIN#*:}@github.com/osbuild/osbuild-composer.git" release-ff-clone
git clone --bare "https://${SCHUTZBOT_LOGIN#*:}@github.com/osbuild/image-builder-frontend.git" release-ff-clone
fi
git -C release-ff-clone fetch origin
# || true to ignore non fast-forwards