Skip to content

Commit

Permalink
ci: add related commit id in commit message--amend
Browse files Browse the repository at this point in the history
  • Loading branch information
TechCiel committed Oct 31, 2023
1 parent d54caa3 commit d0a11eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Sync submodule
run: |
git submodule update --remote
COMMIT_ID=$(git submodule status global | cut -d' ' -f2)
COMMIT_ID=$(git submodule status global | cut -c2-8)
git config --local user.name "GitHub Actions"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -am "sync mirrorz-org/mirrorz-docs@${COMMIT_ID::7}" && git push || echo "No changes to commit"

0 comments on commit d0a11eb

Please sign in to comment.