From 0e537f428a3d6e1c50ead4b6b31f1d22c546cf01 Mon Sep 17 00:00:00 2001 From: Sarah GLINER Date: Tue, 7 Nov 2023 10:36:53 +0100 Subject: [PATCH] fixup! Add url to slack messages --- .github/workflows/refresh_inputs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/refresh_inputs.yml b/.github/workflows/refresh_inputs.yml index 04d34bf..bc18a5d 100644 --- a/.github/workflows/refresh_inputs.yml +++ b/.github/workflows/refresh_inputs.yml @@ -50,6 +50,7 @@ jobs: echo "Files are the same!" fi - name: Echo GHA url + if: ${{ failure() && (github.event_name == 'schedule' || inputs.send_to_slack == true) }} run: echo "url"=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} >> $GITHUB_ENV - name: Send custom JSON data to Slack workflow @@ -62,7 +63,7 @@ jobs: { "title": "Check input list", "status": ":red-cross: Fail", - "status_detail": ":alert: Please update input file ! " + "status_detail": ":alert: Please update input file ! ", "url": "${{ env.url }}" } env: