34 lines (28 loc) · 1.19 KB
/
ci-wrench.yml
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
name: CI Wrench
on:
workflow_dispatch:
schedule:
- cron: '0 20 * * 0'
jobs:
build:
runs-on: ubuntu-latest
container: simgrid/unstable
steps:
- uses: actions/checkout@v3
- name: Build and test WRENCH
run: |
set -e
./tools/jenkins/ci-wrench.sh
- name: Create the failure Message
if: ${{ failure() }}
run: |
echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"@henricasanova: Wrench's git failed to build on simgrid/unstable docker image! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
- name: Create the success Message
if: ${{ success() }}
run: |
echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Wrench's git successfully built on simgrid/unstable docker image. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json
- uses: mattermost/action-mattermost-notify@master
if: ${{ always() }}
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}}