Skip to content

Commit

Permalink
Update afternoon_seal.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloDalRi committed Oct 11, 2023
1 parent 5b2a782 commit 22a68ab
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions .github/workflows/afternoon_seal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on: workflow_dispatch

env:
SEAL_ORGANISATION: alphagov
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
DYNO: true
DRY: true

jobs:
afternoon-seal:
Expand All @@ -23,32 +23,4 @@ jobs:
- name: Afternoon Seal
id: afternoon_seal
run: |
output=$(./bin/seal_runner.rb govuk-platform-security-reliability quotes)
echo "$output"
- name: Notify failure
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"text": "govuk-user-reviewer has detected ${{ steps.afternoon_seal.outputs.output }} access problems that need fixing. View the build logs for details.",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "govuk-user-reviewer has detected ${{ steps.afternoon_seal.outputs.output }} access problems that need fixing. View the build logs for details."
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "View"
},
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"action_id": "button-view-workflow"
}
}
]
}
./bin/seal_runner.rb govuk-platform-security-reliability quotes

0 comments on commit 22a68ab

Please sign in to comment.