generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #426 from layer5io/425-ci-auto-commit
ci(repo): add step to git auto commit
- Loading branch information
Showing
1 changed file
with
8 additions
and
9 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 |
---|---|---|
|
@@ -59,15 +59,14 @@ jobs: | |
echo "Skipping versioning based on input." | ||
fi | ||
- name: Commit changes | ||
run: | | ||
if [ -n "$(git status --porcelain)" ]; then | ||
git add . | ||
git commit -m "chore: publish" | ||
git push origin HEAD | ||
else | ||
echo "No changes to commit." | ||
fi | ||
- name: Use git-auto-commit-action | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: 'chore: publish' | ||
commit_user_name: l5io | ||
commit_user_email: [email protected] | ||
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
commit_options: '--signoff' | ||
|
||
- name: Create Git tags | ||
run: ./scripts/create-multiple-git-tag.sh | ||
|