forked from DGNum/dgnum.eu
workflow: Fix action
This commit is contained in:
parent
918a84302e
commit
4ebf20846a
1 changed files with 6 additions and 6 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue