Skip to content

Commit

Permalink
manually commit to replace stefanzweifel/git-auto-commit-action.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwq committed Feb 2, 2024
1 parent 087a48f commit d20d781
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d20d781

Please sign in to comment.