From a48ed222bb9397c08e411c50fadd37aa61ee5242 Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Mon, 20 Sep 2021 12:02:28 +0200 Subject: [PATCH] build: add url to action run in slack notification --- .github/workflows/continuous-integration.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 06836f44c..6ebe3db23 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -25,6 +25,7 @@ env: PREFLIGHT_IMAGE_BASE: ghcr.io/zama-ai/concretefhe-env:preflight LATEST_IMAGE: ghcr.io/zama-ai/concretefhe-env:latest BASE_IMAGE: ghcr.io/zama-ai/concretefhe-env + ACTION_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} jobs: build_preflight_docker: @@ -96,7 +97,8 @@ jobs: SLACK_ICON: https://pbs.twimg.com/profile_images/1274014582265298945/OjBKP9kn_400x400.png SLACK_COLOR: ${{ job.status }} SLACK_MESSAGE: "Docker image preflight build ${{ env.PREFLIGHT_IMAGE }} finished with \ - status ${{ job.status }}. Rebuilt image: ${{ env.BUILD_DOCKER || 'false' }}." + status ${{ job.status }}. Rebuilt image: ${{ env.BUILD_DOCKER || 'false' }}. \ + (${{ env.ACTION_RUN_URL }})" SLACK_USERNAME: ${{ secrets.BOT_USERNAME }} SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} @@ -201,7 +203,7 @@ jobs: SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }} SLACK_ICON: https://pbs.twimg.com/profile_images/1274014582265298945/OjBKP9kn_400x400.png SLACK_COLOR: ${{ job.status }} - SLACK_MESSAGE: 'Build finished with status ${{ job.status }}' + SLACK_MESSAGE: "Build finished with status ${{ job.status }} (${{ env.ACTION_RUN_URL }})" SLACK_USERNAME: ${{ secrets.BOT_USERNAME }} SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} @@ -253,7 +255,8 @@ jobs: SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }} SLACK_ICON: https://pbs.twimg.com/profile_images/1274014582265298945/OjBKP9kn_400x400.png SLACK_COLOR: ${{ job.status }} - SLACK_MESSAGE: 'Publishing documentation finished with status ${{ job.status }}' + SLACK_MESSAGE: "Publishing documentation finished with status ${{ job.status }} \ + (${{ env.ACTION_RUN_URL }})" SLACK_USERNAME: ${{ secrets.BOT_USERNAME }} SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} @@ -300,6 +303,6 @@ jobs: SLACK_ICON: https://pbs.twimg.com/profile_images/1274014582265298945/OjBKP9kn_400x400.png SLACK_COLOR: ${{ job.status }} SLACK_MESSAGE: "Publishing docker image ${{ env.BASE_IMAGE }} finished with status \ - ${{ job.status }}" + ${{ job.status }} (${{ env.ACTION_RUN_URL }})" SLACK_USERNAME: ${{ secrets.BOT_USERNAME }} SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}