未验证 提交 9c8ad9c6 编写于 作者: ishellhub's avatar ishellhub 提交者: GitHub

Update action (#2001)

* fixed checkstyle

* Formatted with Google Java Formatter
Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
上级 25b3ff47
name: Code Formatter name: Code Formatter
on: on: [push]
pull_request:
push:
branches:
- master
jobs: jobs:
format: format:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@master
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
- name: Set up JDK 12 - name: Set up JDK 12
uses: actions/setup-java@v1 uses: actions/setup-java@v1
...@@ -24,5 +20,5 @@ jobs: ...@@ -24,5 +20,5 @@ jobs:
git config --global user.name github-actions git config --global user.name github-actions
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com' git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git commit -am "Formatted with Google Java Formatter" git commit -am "Formatted with Google Java Formatter" || true
git push --force origin HEAD:$GITHUB_REF git push --force origin HEAD:$GITHUB_REF || true
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册