File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : Code Formatter
2
2
3
- on :
4
- pull_request :
5
- push :
6
- branches :
7
- - master
3
+ on : [push]
8
4
jobs :
9
5
format :
10
6
runs-on : ubuntu-latest
11
7
steps :
12
- - uses : actions/checkout@v2
8
+ - uses : actions/checkout@master
13
9
- uses : actions/setup-python@v2
14
10
- name : Set up JDK 12
15
11
uses : actions/setup-java@v1
24
20
git config --global user.name github-actions
25
21
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
26
22
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
You can’t perform that action at this time.
0 commit comments