Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/afraid-rats-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"reusable-dependabump": patch
---

Improve slack notification messages
11 changes: 8 additions & 3 deletions .github/workflows/reusable-dependabump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ jobs:
token: ${{ secrets.SLACK_TOKEN }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID}}
text: "Failed to check for vulnerabilities in `${{ github.event.repository.name }}`: <${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}|Run>"
text: |
Failed to check for vulnerable dependencies in `${{ github.event.repository.name }}` - <${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}|Run>

- name: Exit on Failure
if: ${{ steps.install.outcome == 'failure' || steps.bump.outcome == 'failure' || steps.post-bump.outcome == 'failure' }}
Expand All @@ -114,7 +115,9 @@ jobs:
token: ${{ secrets.SLACK_TOKEN }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID}}
text: "Vulnerabilities detected in `${{ github.event.repository.name }}`, but failed to create PR: <${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}|Run>"
text: |
Vulnerable dependencies detected in `${{ github.event.repository.name }}`! :panic:
Failed to create PR: <${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}|Run>

- name: Exit on PR Failure
if: ${{ steps.pr.outcome == 'failure' }}
Expand All @@ -128,4 +131,6 @@ jobs:
token: ${{ secrets.SLACK_TOKEN }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID}}
text: "Vulnerabilities detected in `${{ github.event.repository.name }}` - upgrading dependencies: <${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}|Run> - <${{ steps.pr.outputs.pull-request-url }}|PR> :review-time:"
text: |
Vulnerable dependencies detected in `${{ github.event.repository.name }}`! :panic: - <${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}|Run>
Upgrade PR for review: ${{ steps.pr.outputs.pull-request-url }}
11 changes: 8 additions & 3 deletions workflows/reusable-dependabump/reusable-dependabump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ jobs:
token: ${{ secrets.SLACK_TOKEN }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID}}
text: "Failed to check for vulnerabilities in `${{ github.event.repository.name }}`: <${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}|Run>"
text: |
Failed to check for vulnerable dependencies in `${{ github.event.repository.name }}` - <${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}|Run>

- name: Exit on Failure
if: ${{ steps.install.outcome == 'failure' || steps.bump.outcome == 'failure' || steps.post-bump.outcome == 'failure' }}
Expand All @@ -110,7 +111,9 @@ jobs:
token: ${{ secrets.SLACK_TOKEN }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID}}
text: "Vulnerabilities detected in `${{ github.event.repository.name }}`, but failed to create PR: <${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}|Run>"
text: |
Vulnerable dependencies detected in `${{ github.event.repository.name }}`! :panic:
Failed to create PR: <${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}|Run>

- name: Exit on PR Failure
if: ${{ steps.pr.outcome == 'failure' }}
Expand All @@ -124,4 +127,6 @@ jobs:
token: ${{ secrets.SLACK_TOKEN }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID}}
text: "Vulnerabilities detected in `${{ github.event.repository.name }}` - upgrading dependencies: <${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}|Run> - <${{ steps.pr.outputs.pull-request-url }}|PR> :review-time:"
text: |
Vulnerable dependencies detected in `${{ github.event.repository.name }}`! :panic: - <${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}|Run>
Upgrade PR for review: ${{ steps.pr.outputs.pull-request-url }}
Loading