From 4c1336d251a27ce83c041dd3e9d296a695037cf9 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Sat, 4 Mar 2023 14:13:06 +0100 Subject: [PATCH] try to use another mattermost action, as the main one is linux only (uses docker) --- .github/workflows/git.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/git.yml b/.github/workflows/git.yml index 30582d4c3d..3bb82255c6 100644 --- a/.github/workflows/git.yml +++ b/.github/workflows/git.yml @@ -52,11 +52,12 @@ jobs: if: ${{ success() }} run: | ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Simgrid built successfully on ${{ matrix.config.name }}! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json - - uses: mattermost/action-mattermost-notify@master + - uses: komarnitskyi/action-mattermost-notification@v0.1.2-beta if: ${{ always() }} env: - MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} - MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}} + webhook: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + channel: ${{ secrets.MATTERMOST_CHANNEL}} + json: mattermost.json simgrid-modelcheck-ubuntu: @@ -90,9 +91,9 @@ jobs: if: ${{ success() }} run: | ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Simgrid Modelchecker built successfully on ubuntu-stable! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json - - uses: mattermost/action-mattermost-notify@master + - uses: komarnitskyi/action-mattermost-notification@v0.1.2-beta if: ${{ always() }} env: - MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} - MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}} - + webhook: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + channel: ${{ secrets.MATTERMOST_CHANNEL}} + json: mattermost.json -- 2.20.1