workflow: Fix action

This commit is contained in:
Tom Hubrecht 2023-06-30 14:08:17 +02:00
parent 918a84302e
commit 4ebf20846a

View file

@ -51,17 +51,17 @@ jobs:
cp -R --no-preserve=mode,ownership,timestamps result/* "$GIT_REPOSITORY/" cp -R --no-preserve=mode,ownership,timestamps result/* "$GIT_REPOSITORY/"
cd "$GIT_REPOSITORY" cd "$GIT_REPOSITORY"
echo "[+] Creating commit"
ORIGIN_COMMIT="https://$GIT_ORIGIN_SERVER/$GITHUB_REPOSITORY/commit/$GITHUB_SHA"
git add .
git diff-index --quiet HEAD || git commit --message "Automatic pages update from $ORIGIN_COMMIT"
echo "[+] Adding .domains file" echo "[+] Adding .domains file"
cat << EOL > "$GIT_REPOSITORY/.domains" cat << EOL > .domains
dgnum.eu dgnum.eu
dev.dgnum.eu dev.dgnum.eu
EOL EOL
echo "[+] Creating commit"
ORIGIN_COMMIT="https://$GIT_ORIGIN_SERVER/$GITHUB_REPOSITORY/commit/$GITHUB_SHA"
git add . .domains
git diff-index --quiet HEAD || git commit --message "Automatic pages update from $ORIGIN_COMMIT"
echo "[+] Pushing update" echo "[+] Pushing update"
git push "$GIT_CMD_REPOSITORY" --set-upstream main git push "$GIT_CMD_REPOSITORY" --set-upstream main
env: env: