From 4ebf20846ac7db90b159771f763303e90ffaf548 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Fri, 30 Jun 2023 14:08:17 +0200 Subject: [PATCH] workflow: Fix action --- .forgejo/workflows/deploy-dgnum.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/deploy-dgnum.yaml b/.forgejo/workflows/deploy-dgnum.yaml index 7bbbf46..bbaa5a0 100644 --- a/.forgejo/workflows/deploy-dgnum.yaml +++ b/.forgejo/workflows/deploy-dgnum.yaml @@ -51,17 +51,17 @@ jobs: cp -R --no-preserve=mode,ownership,timestamps result/* "$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" - cat << EOL > "$GIT_REPOSITORY/.domains" + cat << EOL > .domains dgnum.eu dev.dgnum.eu 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" git push "$GIT_CMD_REPOSITORY" --set-upstream main env: