mirror of
https://github.com/troglobit/finit.git
synced 2026-10-12 10:12:32 +00:00
.github: fix deploy issue
- We already have the SHA - Use 'git add -A' to handle deleted files too Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -82,19 +82,18 @@ jobs:
|
||||
|
||||
- name: Commit and push
|
||||
run: |
|
||||
cd pages
|
||||
|
||||
cd pages/
|
||||
if [ -z "$(git status --porcelain)" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
SRC_REPO="${GITHUB_REPOSITORY}"
|
||||
SRC_REF="$(git -C .. rev-parse --short HEAD)"
|
||||
SRC_REF="${GITHUB_SHA::7}"
|
||||
SRC_URL="https://github.com/${SRC_REPO}/commit/${SRC_REF}"
|
||||
|
||||
git config user.name "GitHub Actions"
|
||||
git config user.email "actions@github.com"
|
||||
git add .
|
||||
git add -A
|
||||
git commit -m "docs: update from ${SRC_REPO}@${SRC_REF}" \
|
||||
-m "For details, see ${SRC_URL}"
|
||||
git push
|
||||
|
||||
Reference in New Issue
Block a user