Skip to content

Commit

Permalink
Update tree_sitter_maker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
garam-kim1 authored and Garam Kim committed Apr 19, 2024
1 parent 2ea03a9 commit 5a1ce5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/tree_sitter_maker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,16 @@ jobs:
git config --global user.name 'GitHub Actions'
git config --global user.email ''
git add -A
echo $(git status)
if git diff --staged --quiet; then
echo "No changes, skipping commit and push."
else
git commit -m "Update from tree-sitter-python"
LATEST_HASH=$(git rev-parse HEAD)
sed -i "s/rev = \".*\"/rev = \"$LATEST_HASH\"/" README.md
git add README.md
git commit -m "Update commit hash in README.md"
git push origin master
fi

0 comments on commit 5a1ce5e

Please sign in to comment.