Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit de36406

Browse files
Merge pull request #92 from mikeparker/patch-1
Fix CICD slack links
2 parents 95bc702 + cb96fc7 commit de36406

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/release-weekly-build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
shell: bash
2323
env:
2424
GO111MODULE: "on"
25+
GITHUB_WORKFLOW_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
2526

2627
steps:
2728
- name: Install Docker CLI
@@ -69,22 +70,23 @@ jobs:
6970
- name: ON SUCCESS - Slack notification
7071
if: ${{ success() }}
7172
run: |
72-
curl -X POST -H 'Content-type: application/json' --data '{"text":":heavy_check_mark: docker scan cli plugin Weekly Build SUCCESS on ${{ matrix.os}}"}' ${{ secrets.SLACK_WEBHOOK }}
73+
curl -X POST -H 'Content-type: application/json' --data '{"text":":heavy_check_mark: <${{ env.GITHUB_WORKFLOW_URL }}|docker scan cli plugin Weekly Build SUCCESS> on ${{ matrix.os}}"}' ${{ secrets.SLACK_WEBHOOK }}
7374
- name: ON FAILURE - Slack notification
7475
if: ${{ failure() }}
7576
run: |
76-
curl -X POST -H 'Content-type: application/json' --data '{"text":"@here :no_entry_sign: <${{ env.GITHUB_WORKFLOW_URL }}|docker scan cli plugin Weekly Build FAILED> on ${{ matrix.os}}"}' ${{ secrets.SLACK_WEBHOOK }}
77+
curl -X POST -H 'Content-type: application/json' --data '{"text":":no_entry_sign: <${{ env.GITHUB_WORKFLOW_URL }}|docker scan cli plugin Weekly Build FAILED> on ${{ matrix.os}}"}' ${{ secrets.SLACK_WEBHOOK }}
7778
- name: ON CANCELLED - Slack notification
7879
if: ${{ cancelled() }}
7980
run: |
80-
curl -X POST -H 'Content-type: application/json' --data '{"text":":bangbang: docker scan cli plugin Weekly Build CANCELED on ${{ matrix.os}}"}' ${{ secrets.SLACK_WEBHOOK }}
81+
curl -X POST -H 'Content-type: application/json' --data '{"text":":bangbang: <${{ env.GITHUB_WORKFLOW_URL }}|docker scan cli plugin Weekly Build CANCELED> on ${{ matrix.os}}"}' ${{ secrets.SLACK_WEBHOOK }}
8182
8283
release:
8384
runs-on: ubuntu-latest
8485
needs: build
8586
if: ${{ github.event.inputs.tag != '' }} # don't release if no tag is specified
8687
env:
8788
E2E_TEST_AUTH_TOKEN: ${{ secrets.E2E_TEST_AUTH_TOKEN }}
89+
GITHUB_WORKFLOW_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
8890
steps:
8991

9092
- name: Download artifacts
@@ -103,4 +105,4 @@ jobs:
103105
- name: ON SUCCESS - Slack notification
104106
if: ${{ success() }}
105107
run: |
106-
curl -X POST -H 'Content-type: application/json' --data '{"text":":heavy_check_mark: docker scan cli plugin has been released ${{ github.event.inputs.tag }}"}' ${{ secrets.SLACK_WEBHOOK }}
108+
curl -X POST -H 'Content-type: application/json' --data '{"text":":heavy_check_mark: <${{ env.GITHUB_WORKFLOW_URL }}|docker scan cli plugin has been released> ${{ github.event.inputs.tag }}"}' ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)