Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to use another mattermost action, as the main one is linux only (uses docker)
authorAugustin Degomme <adegomme@users.noreply.github.com>
Sat, 4 Mar 2023 13:13:06 +0000 (14:13 +0100)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Sat, 4 Mar 2023 13:13:06 +0000 (14:13 +0100)
.github/workflows/git.yml

index 30582d4..3bb8225 100644 (file)
@@ -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