Simplify workflows
This commit is contained in:
parent
5a006eee0a
commit
b424c32171
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -1,11 +1,5 @@
|
|||||||
name: Build Project
|
name: Build
|
||||||
|
on: push
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
11
.github/workflows/checkstyle.yml
vendored
11
.github/workflows/checkstyle.yml
vendored
@ -1,10 +1,5 @@
|
|||||||
name: Code Formatter
|
name: Format Code
|
||||||
|
on: push
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- "**.java"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
format:
|
format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -23,5 +18,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" || true
|
git commit -am "Format with Google Java Formatter" || true
|
||||||
git push --force origin HEAD:$GITHUB_REF || true
|
git push --force origin HEAD:$GITHUB_REF || true
|
||||||
|
14
.github/workflows/prettier.yml
vendored
14
.github/workflows/prettier.yml
vendored
@ -1,16 +1,8 @@
|
|||||||
name: Prettier
|
name: Prettify
|
||||||
|
on: push
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- Development
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prettier:
|
prettier:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -21,6 +13,6 @@ jobs:
|
|||||||
uses: creyD/prettier_action@v3.3
|
uses: creyD/prettier_action@v3.3
|
||||||
with:
|
with:
|
||||||
prettier_options: --write **/*.{java}
|
prettier_options: --write **/*.{java}
|
||||||
commit_message: 'style: prettify code'
|
commit_message: 'Prettify code'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# This GitHub Action updates the DIRECTORY.md file (if needed) when doing a git push
|
# This GitHub Action updates the DIRECTORY.md file (if needed) when doing a git push
|
||||||
name: update_directory_md
|
name: Update Directory
|
||||||
on: [push]
|
on: push
|
||||||
jobs:
|
jobs:
|
||||||
update_directory_md:
|
update_directory_md:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
Loading…
Reference in New Issue
Block a user