Co-authored-by: julienrbrt <julien@rbrt.fr>
This commit is contained in:
parent
20c63a9d01
commit
c92ff3ab78
55
.github/workflows/sims.yml
vendored
55
.github/workflows/sims.yml
vendored
@ -80,58 +80,3 @@ jobs:
|
||||
- name: test-sim-multi-seed-short
|
||||
run: |
|
||||
make test-sim-multi-seed-short
|
||||
|
||||
sims-notify-success:
|
||||
needs:
|
||||
[
|
||||
test-sim-multi-seed-short,
|
||||
test-sim-after-import,
|
||||
test-sim-import-export,
|
||||
test-sim-deterministic,
|
||||
]
|
||||
runs-on: depot-ubuntu-22.04-16
|
||||
if: ${{ success() }}
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Get previous workflow status
|
||||
uses: ./.github/actions/last-workflow-status
|
||||
id: last_status
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Notify Slack on success
|
||||
if: ${{ steps.last_status.outputs.last_status == 'failure' }}
|
||||
uses: rtCamp/action-slack-notify@v2.3.3
|
||||
env:
|
||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||
SLACK_CHANNEL: sdk-sims
|
||||
SLACK_USERNAME: Sim Tests
|
||||
SLACK_ICON_EMOJI: ":white_check_mark:"
|
||||
SLACK_COLOR: good
|
||||
SLACK_MESSAGE: Sims are passing
|
||||
SLACK_FOOTER: ""
|
||||
|
||||
sims-notify-failure:
|
||||
permissions:
|
||||
contents: none
|
||||
needs:
|
||||
[
|
||||
test-sim-multi-seed-short,
|
||||
test-sim-after-import,
|
||||
test-sim-import-export,
|
||||
test-sim-deterministic,
|
||||
]
|
||||
runs-on: depot-ubuntu-22.04-16
|
||||
if: ${{ failure() }}
|
||||
steps:
|
||||
- name: Notify Slack on failure
|
||||
uses: rtCamp/action-slack-notify@v2.3.3
|
||||
env:
|
||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||
SLACK_CHANNEL: sdk-sims
|
||||
SLACK_USERNAME: Sim Tests
|
||||
SLACK_ICON_EMOJI: ":skull:"
|
||||
SLACK_COLOR: danger
|
||||
SLACK_MESSAGE: Sims are failing
|
||||
SLACK_FOOTER: ""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user