From 2e7ada3136132c1a3e30aa6d6e50a3af11045045 Mon Sep 17 00:00:00 2001 From: Pion <59523206+pionbot@users.noreply.github.com> Date: Sat, 17 Jul 2021 10:41:47 +0000 Subject: [PATCH] Update CI configs to v0.5.8 Update lint scripts and CI configs. --- .github/workflows/generate-authors.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/generate-authors.yml b/.github/workflows/generate-authors.yml index e619025..bba96b2 100644 --- a/.github/workflows/generate-authors.yml +++ b/.github/workflows/generate-authors.yml @@ -52,11 +52,11 @@ jobs: run: | echo "::set-output name=msg::$(git status -s | wc -l)" - - uses: stefanzweifel/git-auto-commit-action@v4 + - name: Commit and push if: ${{ steps.git-status-output.outputs.msg != '0' }} - with: - commit_message: ${{ steps.last-commit-message.outputs.msg }} - commit_author: ${{ steps.last-commit-author.outputs.msg }} - commit_options: '--amend --no-edit' - push_options: '--force' - skip_fetch: true + run: | + git config user.email $(echo "${{ steps.last-commit-author.outputs.msg }}" | sed 's/\(.\+\) <\(\S\+\)>/\2/') + git config user.name $(echo "${{ steps.last-commit-author.outputs.msg }}" | sed 's/\(.\+\) <\(\S\+\)>/\1/') + git add AUTHORS.txt + git commit --amend --no-edit + git push --force https://github.com/${GITHUB_REPOSITORY} $(git symbolic-ref -q --short HEAD)