File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ jobs:
1818 java-version : ' 17'
1919 - name : Format Code
2020 run : mvn package -DskipTests=true
21- - name : Push changes
22- run : |
23- git config --local user.email "action@github.com"
24- git config --local user.name "GitHub Action "
25- git commit -m "a reformat code" -a || echo "nothing to commit"
26- remote="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN}}@github.com/${GITHUB_REPOSITORY}.git"
27- branch="${GITHUB_REF:11}"
28- git push "${remote}" ${branch} || echo "nothing to push"
29- shell : bash
21+ - name : Git Commit and Push
22+ uses : github-actions-x/commit@v2.9
23+ with :
24+ commit-message : " . a reformat code "
25+ rebase : ' true '
26+ github-token : ${{ secrets.GITHUB_TOKEN }}
27+ push- branch: ' master '
28+ name : github actions
29+ email : actions@github.com
You can’t perform that action at this time.
0 commit comments