feat: add exit 0

This commit is contained in:
TheClashFruit 2024-04-21 13:11:52 +02:00
parent 7bebcf148d
commit 30a41545c8
Signed by: TheClashFruit
GPG key ID: 09BB24C34C2F3204

View file

@ -12,7 +12,7 @@ GIT_REMOTE="https://$GIT_SERVER_HOST/$GITHUB_REPOSITORY"
GITHUB_REPOSITORY_AUTHOR=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f1)
GITHUB_REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f2)
PAGES_HOSTNAME="$DEPLOY_BRANCH.$GITHUB_REPOSITORY_NAME.$GITHUB_REPOSITORY_AUTHOR.theclashfruit.page"
PAGES_HOSTNAME="$GITHUB_REPOSITORY_NAME.$GITHUB_REPOSITORY_AUTHOR.theclashfruit.page"
# Move to temp
TMP_DIR=$(mktemp -d)
@ -44,4 +44,6 @@ git commit -m "Deployed $COMMIT_ID to Pages. ($PAGES_HOSTNAME)"
git remote set-url origin "https://$GITHUB_ACTOR:$GITHUB_TOKEN@$GIT_SERVER_HOST/$GITHUB_REPOSITORY.git"
git push --force origin "$DEPLOY_BRANCH:$DEPLOY_BRANCH"
curl -sL -H 'cache-control: no-cache' "https://$PAGES_HOSTNAME" > /dev/null
curl -sL -H 'cache-control: no-cache' "https://$PAGES_HOSTNAME" > /dev/null
exit 0