Skip to content

Commit 635cb2e

Browse files
committed
.github: debug
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 524f565 commit 635cb2e

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/docs.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,17 @@ jobs:
8484
8585
- name: Commit and push
8686
run: |
87-
cd pages
88-
89-
if [ -z "$(git status --porcelain)" ]; then
87+
if [ -z "$(git -C pages status --porcelain)" ]; then
9088
exit 0
9189
fi
9290
9391
SRC_REPO="${GITHUB_REPOSITORY}"
94-
SRC_REF="$(git -C .. rev-parse --short HEAD)"
92+
SRC_REF="$(git rev-parse --short HEAD)"
9593
SRC_URL="https://github.com/${SRC_REPO}/commit/${SRC_REF}"
9694
97-
git config user.name "GitHub Actions"
98-
git config user.email "[email protected]"
99-
git add .
100-
git commit -m "docs: update from ${SRC_REPO}@${SRC_REF}" \
101-
-m "For details, see ${SRC_URL}"
102-
git push
95+
git -C pages config user.name "GitHub Actions"
96+
git -C pages config user.email "[email protected]"
97+
git -C pages add -A
98+
git -C pages commit -m "docs: update from ${SRC_REPO}@${SRC_REF}" \
99+
-m "For details, see ${SRC_URL}"
100+
git -C pages push origin HEAD:main

0 commit comments

Comments
 (0)