mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-08-16 14:40:23 +03:00
CI: Replace git-auto-commit-action with a short inline script
Avoids another external dependency.
This commit is contained in:
parent
f4622128f0
commit
419801037e
14
.github/workflows/documentation.yml
vendored
14
.github/workflows/documentation.yml
vendored
@ -43,6 +43,14 @@ jobs:
|
||||
run: yarn run private-js-docs
|
||||
|
||||
- name: Commit All Changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: GH Action Documentation
|
||||
run: |
|
||||
if [ -n "`git status -s | grep "^ M"`" ]; then
|
||||
echo "Uncommitted changes to repo files detected. Committing and pushing now."
|
||||
git config user.name "${GITHUB_ACTOR}"
|
||||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
||||
git add -u
|
||||
git commit -m "GH Action Documentation"
|
||||
git push origin HEAD
|
||||
else
|
||||
echo "No changes detected in repo files. Nothing to commit!"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user