mirror of
https://github.com/troglobit/finit.git
synced 2026-11-15 19:13:11 +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:
1 file changed
+3
-4
@@ -82,19 +82,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Commit and push
|
- name: Commit and push
|
||||||
run: |
|
run: |
|
||||||
cd pages
|
cd pages/
|
||||||
|
|
||||||
if [ -z "$(git status --porcelain)" ]; then
|
if [ -z "$(git status --porcelain)" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SRC_REPO="${GITHUB_REPOSITORY}"
|
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}"
|
SRC_URL="https://github.com/${SRC_REPO}/commit/${SRC_REF}"
|
||||||
|
|
||||||
git config user.name "GitHub Actions"
|
git config user.name "GitHub Actions"
|
||||||
git config user.email "actions@github.com"
|
git config user.email "actions@github.com"
|
||||||
git add .
|
git add -A
|
||||||
git commit -m "docs: update from ${SRC_REPO}@${SRC_REF}" \
|
git commit -m "docs: update from ${SRC_REPO}@${SRC_REF}" \
|
||||||
-m "For details, see ${SRC_URL}"
|
-m "For details, see ${SRC_URL}"
|
||||||
git push
|
git push
|
||||||
Reference in new issue
Block a user