Skip to content

Commit f1d8218

Browse files
committed
. e use commit action
Just like updateMarkdown.yml already does. This also brings the commit message in line with ACN v2.
1 parent 8f4212b commit f1d8218

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/formatJava.yml

+9-9
Original file line numberDiff line numberDiff 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 "[email protected]"
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/[email protected]
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+

0 commit comments

Comments
 (0)