File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments