1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
name: CI BatSim
on:
workflow_dispatch:
schedule:
- cron: '0 20 * * 0'
jobs:
build:
runs-on: ubuntu-latest
container: simgrid/unstable
steps:
- uses: actions/checkout@v4
- name: Build and test BatSim
run: |
set -e
./tools/jenkins/ci-batsim.sh
- name: Send the failure Message
if: ${{ failure() }}
uses: mattermost/action-mattermost-notify@master
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
PAYLOAD: |-
{
"channel": "bot-office",
"attachments": [{
"color": "#FF0000",
"text": "@millian: BatSim failed to build on simgrid/unstable docker image! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"icon": "https://cdn3.iconfinder.com/data/icons/system-basic-vol-4-1/20/icon-note-attention-alt3-512.png"
}]}
- name: Send the success Message
if: ${{ success() }}
uses: mattermost/action-mattermost-notify@master
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}
PAYLOAD: |-
{
"channel": "bot-office",
"attachments": [{
"color": "#00FF00",
"text": "BatSim successfully built on simgrid/unstable docker image! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}]}
|