2021-04-16 11:47:36 +08:00
|
|
|
# This workflow will build a Java project with Maven
|
|
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
|
|
|
|
|
|
|
name: PIG 构建action
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-04-16 11:47:59 +08:00
|
|
|
branches: [ master,dev ]
|
2021-04-16 11:47:36 +08:00
|
|
|
pull_request:
|
2021-04-16 11:47:59 +08:00
|
|
|
branches: [ master,dev ]
|
2021-04-16 11:47:36 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK 11
|
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
java-version: '11'
|
|
|
|
distribution: 'adopt'
|
|
|
|
|
|
|
|
- name: mvn clean install
|
|
|
|
run: mvn clean install
|
|
|
|
|
|
|
|
- name: mvn spring-javaformat:validate
|
|
|
|
run: mvn spring-javaformat:validate
|
|
|
|
|
|
|
|
- name: success
|
|
|
|
if: ${{ success() }}
|
|
|
|
uses: fifsky/dingtalk-action@master
|
|
|
|
with:
|
|
|
|
url: ${{ secrets.DINGTALK_WEBHOOK}}
|
|
|
|
type: markdown
|
|
|
|
content: |
|
|
|
|
# 💯👨💻 Success 🎉🎉🎉
|
|
|
|
> Github Action: https://github.com/pig-mesh/pig success
|
|
|
|
> ^_^ from github action message
|
|
|
|
|
|
|
|
- name: failure
|
|
|
|
if: ${{ failure() }}
|
|
|
|
uses: fifsky/dingtalk-action@master
|
|
|
|
with:
|
|
|
|
url: ${{ secrets.DINGTALK_WEBHOOK}}
|
|
|
|
type: markdown
|
|
|
|
content: |
|
|
|
|
# 💤🤷♀️ failure 🙅♂️💣
|
|
|
|
> Github Action: https://github.com/pig-mesh/pig failure
|
|
|
|
> (⋟﹏⋞) from github action message
|