Skip to content

Commit 8040604

Browse files
committed
.github: fix deploy issue
- We already have the SHA - Use 'git add -A' to handle deleted files too Signed-off-by: Joachim Wiberg <[email protected]>
1 parent de544a5 commit 8040604

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,18 @@ jobs:
8282
8383
- name: Commit and push
8484
run: |
85-
cd pages
86-
85+
cd pages/
8786
if [ -z "$(git status --porcelain)" ]; then
8887
exit 0
8988
fi
9089
9190
SRC_REPO="${GITHUB_REPOSITORY}"
92-
SRC_REF="$(git -C .. rev-parse --short HEAD)"
91+
SRC_REF="${GITHUB_SHA::7}"
9392
SRC_URL="https://github.com/${SRC_REPO}/commit/${SRC_REF}"
9493
9594
git config user.name "GitHub Actions"
9695
git config user.email "[email protected]"
97-
git add .
96+
git add -A
9897
git commit -m "docs: update from ${SRC_REPO}@${SRC_REF}" \
9998
-m "For details, see ${SRC_URL}"
10099
git push

0 commit comments

Comments
 (0)