# 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: branches: [ master,dev ] pull_request: branches: [ master,dev ] 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