mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Revert "CI: Only commit if there are changes"
This reverts commit e4b2698380
.
This commit is contained in:
parent
f97b25676e
commit
0b6a345208
@ -84,11 +84,14 @@ rm $TWORG_BUILD_OUTPUT/build.tid || exit 1
|
|||||||
|
|
||||||
# Push output back to GitHub
|
# Push output back to GitHub
|
||||||
|
|
||||||
pushd $TWORG_BUILD_OUTPUT || exit 1
|
# Exit script immediately if any command fails
|
||||||
git config --global user.email "actions@github.com" || exit 1
|
set -e
|
||||||
git config --global user.name "GitHub Actions" || exit 1
|
|
||||||
git add -A . || exit 1
|
pushd $TWORG_BUILD_OUTPUT
|
||||||
git diff --exit-code || git commit --message "GitHub build: $GITHUB_RUN_NUMBER of $TW5_BUILD_BRANCH ($(date +'%F %T %Z'))" || exit 1
|
git config --global user.email "actions@github.com"
|
||||||
git remote add deploy "https://$GH_TOKEN@github.com/TiddlyWiki/tiddlywiki.org-gh-pages.git" &>/dev/null || exit 1
|
git config --global user.name "GitHub Actions"
|
||||||
git push deploy main &>/dev/null || exit 1
|
git add -A .
|
||||||
|
git commit --message "GitHub build: $GITHUB_RUN_NUMBER of $TW5_BUILD_BRANCH ($(date +'%F %T %Z'))"
|
||||||
|
git remote add deploy "https://$GH_TOKEN@github.com/TiddlyWiki/tiddlywiki.org-gh-pages.git" &>/dev/null
|
||||||
|
git push deploy main &>/dev/null
|
||||||
popd
|
popd
|
||||||
|
@ -2,11 +2,14 @@
|
|||||||
|
|
||||||
# Push output back to GitHub
|
# Push output back to GitHub
|
||||||
|
|
||||||
cd output || exit 1
|
# Exit script immediately if any command fails
|
||||||
git config --global user.email "actions@github.com" || exit 1
|
set -e
|
||||||
git config --global user.name "GitHub Actions" || exit 1
|
|
||||||
git add -A . || exit 1
|
cd output
|
||||||
git diff --exit-code || git commit --message "GitHub build: $GITHUB_RUN_NUMBER of $TW5_BUILD_BRANCH ($(date +'%F %T %Z'))" || exit 1
|
git config --global user.email "actions@github.com"
|
||||||
git remote add deploy "https://$GH_TOKEN@github.com/Jermolene/jermolene.github.io.git" || exit 1
|
git config --global user.name "GitHub Actions"
|
||||||
git push deploy master || exit 1
|
git add -A .
|
||||||
cd .. || exit 1
|
git commit --message "GitHub build: $GITHUB_RUN_NUMBER of $TW5_BUILD_BRANCH ($(date +'%F %T %Z'))"
|
||||||
|
git remote add deploy "https://$GH_TOKEN@github.com/Jermolene/jermolene.github.io.git" &>/dev/null
|
||||||
|
git push deploy master &>/dev/null
|
||||||
|
cd ..
|
||||||
|
Loading…
Reference in New Issue
Block a user