From 543f37c78ceddf46c9f7ca5be005647d4ccada0e Mon Sep 17 00:00:00 2001 From: Antonette Caldwell <134739862+nebula-aac@users.noreply.github.com> Date: Tue, 12 Dec 2023 19:26:10 +0000 Subject: [PATCH] ci(repo): add step to git auto commit fix #425 Signed-off-by: Antonette Caldwell <134739862+nebula-aac@users.noreply.github.com> --- .github/workflows/release.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c8edfb0..ed19b76a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: ci@layer5.io + commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + commit_options: '--signoff' - name: Create Git tags run: ./scripts/create-multiple-git-tag.sh