-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
635 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,12 +34,20 @@ jobs: | |
- name: Commit | ||
run: | | ||
if !git diff --cached --quiet; then | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add CHANGELOG.md | ||
git commit -m "Update Changelog" | ||
git add CHANGELOG.md | ||
if ! git diff --cached --quiet; then | ||
echo "Commit pushing" | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "chen08209" | ||
git commit -m "Update changelog" | ||
git push | ||
if [ $? -eq 0 ]; then | ||
echo "Push succeeded" | ||
else | ||
echo "Push failed" | ||
exit 1 | ||
fi | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.