ci: comment on original commit when pushing doc fixes

This commit is contained in:
Wez Furlong
2023-03-11 07:49:13 -07:00
parent e0f4f532a4
commit a1e5d66c7b
+10
View File
@@ -68,6 +68,7 @@ jobs:
run: |
echo "modified=$(if git diff-index --quiet HEAD --; then echo 'false'; else echo 'true'; fi)" >> $GITHUB_OUTPUT
- name: Push changes
id: git-push
if: steps.git-check.outputs.modified == 'true'
run: |
AUTHOR=$(git show -s --format='%aN')
@@ -76,7 +77,16 @@ jobs:
git config --global user.email "${EMAIL}"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Automated doc formatting fix"
echo "hash=$(git rev-parse HEAD)"
git push
- name: Create commit comment
if: steps.git-check.outputs.modified == 'true'
uses: peter-evans/commit-comment@v2
with:
body: |
This commit had uncommitted doc formatting changes.
These have been automatically applied in ${{ steps.git-push.outputs.hash }}
pages-deploy:
environment: