From d20d78122a43309eac1d5653a596547c22797554 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Fri, 2 Feb 2024 13:38:58 +0800 Subject: [PATCH] manually commit to replace stefanzweifel/git-auto-commit-action. --- .github/workflows/release.yaml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 48235599..281f4e8b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -39,20 +39,21 @@ jobs: sed -i -e "s/.*_GitCommit=.*/_GitCommit=`git rev-parse HEAD`/g" ./build/APKBUILD sed -i -e "s/.*_GitBranch=.*/_GitBranch=`git rev-parse --abbrev-ref HEAD`/g" ./build/APKBUILD - - name: Commit and Push Changes - id: commit-and-push - uses: stefanzweifel/git-auto-commit-action@v4 + # - name: Commit and Push Changes + # id: commit-and-push + # uses: stefanzweifel/git-auto-commit-action@v4 - # - name: commit files - # run: | - # git config --local user.name "github-actions[bot]" - # git config --local user.email "github-actions[bot]@users.noreply.github.com" - # if ! git diff --exit-code; then - # git add build/APKBUILD - # git commit -m "GH Action update files" - # git push - # echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT - # fi + - name: commit files + id: commit-and-push + run: | + git config --local user.name "github-actions[bot]" + git config --local user.email "github-actions[bot]@users.noreply.github.com" + if ! git diff --exit-code; then + git add build/APKBUILD + git commit -m "GH Action update files" + git push + echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT + fi # # - name: push changes # uses: ad-m/github-push-action@master