Add a comment about preview being ready

This commit is contained in:
Wiktor Kwapisiewicz 2023-12-12 13:59:24 +01:00 committed by Heiko Schaefer
parent e913b907d7
commit 7aec448e6c
No known key found for this signature in database
GPG key ID: DAE9A9050FCCF1EB

View file

@ -29,6 +29,7 @@ steps:
git add .
git commit -m "Update rendered page" -m "Source: $CI_COMMIT_SHA" -m "See: $CI_BUILD_LINK"
git push
curl --fail -i -d body="Preview is ready at https://openpgp.codeberg.page/pr-preview/$CI_COMMIT_PULL_REQUEST/" -H "Authorization: token $CODEBERG_TOKEN" "https://codeberg.org/api/v1/repos/$CI_REPO/issues/$CI_COMMIT_PULL_REQUEST/comments"
fi
when:
event: pull_request