Skip to content

Commit 9c8ad9c

Browse files
realDuYuanChaogithub-actions
and
github-actions
authored
Update action (TheAlgorithms#2001)
* fixed checkstyle * Formatted with Google Java Formatter Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent 25b3ff4 commit 9c8ad9c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/checkstyle.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
name: Code Formatter
22

3-
on:
4-
pull_request:
5-
push:
6-
branches:
7-
- master
3+
on: [push]
84
jobs:
95
format:
106
runs-on: ubuntu-latest
117
steps:
12-
- uses: actions/checkout@v2
8+
- uses: actions/checkout@master
139
- uses: actions/setup-python@v2
1410
- name: Set up JDK 12
1511
uses: actions/setup-java@v1
@@ -24,5 +20,5 @@ jobs:
2420
git config --global user.name github-actions
2521
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
2622
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
27-
git commit -am "Formatted with Google Java Formatter"
28-
git push --force origin HEAD:$GITHUB_REF
23+
git commit -am "Formatted with Google Java Formatter" || true
24+
git push --force origin HEAD:$GITHUB_REF || true

0 commit comments

Comments
 (0)