diff --git a/.github/workflows/slack-alert.yml b/.github/workflows/slack-alert.yml new file mode 100644 index 0000000..8f65cf5 --- /dev/null +++ b/.github/workflows/slack-alert.yml @@ -0,0 +1,22 @@ +name: slack-alert + +on: + workflow_run: + workflows: [tests] + types: [completed] + +jobs: + on-failure: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'failure' }} + steps: + - name: Send Slack Alert + id: slack + uses: slackapi/slack-github-action@v1.26.0 + with: + payload: | + Github Actions ${{ github.event.workflow_run.conclusion }} + Repo: ${{github.event.workflow_run.repository.name }} + Workflow URL: ${{ github.event.workflow_run.html_url }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7cdfbe6..fdb748c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,9 @@ on: branches: [master, stable-*] pull_request: branches: [master, stable-*] + schedule: + # Every Sunday, rerun + - cron: "0 12 * * 0" jobs: tests: @@ -64,7 +67,7 @@ jobs: os: [ubuntu-latest] java-distribution: [adopt] java-version: [17] - dockcross-tag: ["20220906-e88a3ce", "20230116-670f7f7"] + dockcross-tag: ["20230116-670f7f7", "20240529-0dade71", "latest"] steps: - uses: actions/checkout@v2.1.1