mirror of https://gitee.com/maxjhandsome/pig
💚 Fixing CI Build. github action结果推送到 企微
💚 Fixing CI Build.
This commit is contained in:
parent
3f3def6f3f
commit
86cae4e0ca
|
@ -13,39 +13,53 @@ 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'
|
||||
- uses: shaowenchen/debugger-action@v2
|
||||
if: github.repository == 'pig-mesh/pig'
|
||||
name: debugger
|
||||
timeout-minutes: 30
|
||||
continue-on-error: true
|
||||
with:
|
||||
frp_server_addr: ${{ secrets.FRP_SERVER_ADDR }}
|
||||
frp_server_port: ${{ secrets.FRP_SERVER_PORT }}
|
||||
frp_token: ${{ secrets.FRP_TOKEN }}
|
||||
ssh_port: ${{ secrets.SSH_PORT }}
|
||||
|
||||
- name: mvn clean install
|
||||
run: mvn clean install
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '11'
|
||||
distribution: 'adopt'
|
||||
|
||||
- name: mvn spring-javaformat:validate
|
||||
run: mvn spring-javaformat:validate
|
||||
- name: mvn spring-javaformat:validate
|
||||
run: mvn spring-javaformat:validate
|
||||
|
||||
- name: success
|
||||
if: success() && github.repository == 'pig-mesh/pig'
|
||||
uses: chf007/action-wechat-work@master
|
||||
env:
|
||||
WECHAT_WORK_BOT_WEBHOOK: ${{secrets.WECHAT_WORK_BOT_WEBHOOK}}
|
||||
with:
|
||||
msgtype: markdown
|
||||
content: |
|
||||
# 💯👨💻 Success 🎉🎉🎉
|
||||
> Github Action: https://github.com/pig-mesh/pig success
|
||||
> ^_^ from github action message
|
||||
- name: mvn clean install
|
||||
run: mvn clean install
|
||||
|
||||
- name: failure
|
||||
if: failure() && github.repository == 'pig-mesh/pig'
|
||||
uses: chf007/action-wechat-work@master
|
||||
env:
|
||||
WECHAT_WORK_BOT_WEBHOOK: ${{secrets.WECHAT_WORK_BOT_WEBHOOK}}
|
||||
with:
|
||||
msgtype: markdown
|
||||
content: |
|
||||
# 💤🤷♀️ failure 🙅♂️💣
|
||||
> Github Action: https://github.com/pig-mesh/pig failure
|
||||
> (⋟﹏⋞) from github action message
|
||||
- name: Start containers
|
||||
run: docker-compose build && docker-compose up -d
|
||||
|
||||
- name: success
|
||||
if: success() && github.repository == 'pig-mesh/pig'
|
||||
uses: chf007/action-wechat-work@master
|
||||
env:
|
||||
WECHAT_WORK_BOT_WEBHOOK: ${{secrets.WECHAT_WORK_BOT_WEBHOOK}}
|
||||
with:
|
||||
msgtype: markdown
|
||||
content: |
|
||||
# 💯👨💻 Success 🎉🎉🎉 [pig-mesh/pig](https://github.com/pig-mesh/pig)
|
||||
> Github Action: https://github.com/pig-mesh/pig success
|
||||
> ^_^ from github action message
|
||||
|
||||
- name: failure
|
||||
if: failure() && github.repository == 'pig-mesh/pig'
|
||||
uses: chf007/action-wechat-work@master
|
||||
env:
|
||||
WECHAT_WORK_BOT_WEBHOOK: ${{secrets.WECHAT_WORK_BOT_WEBHOOK}}
|
||||
with:
|
||||
msgtype: markdown
|
||||
content: |
|
||||
# 💤🤷♀️ failure 🙅♂️💣 [pig-mesh/pig](https://github.com/pig-mesh/pig)
|
||||
> Github Action: https://github.com/pig-mesh/pig failure
|
||||
> (⋟﹏⋞) from github action message
|
||||
|
|
Loading…
Reference in New Issue