Skip to content

Commit

Permalink
🧹 Tidy Up Some Bits
Browse files Browse the repository at this point in the history
  • Loading branch information
connormaglynn committed Dec 5, 2024
1 parent da71c5d commit 2211510
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 68 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/management-account-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ jobs:
- run: terraform apply -auto-approve
if: github.event.ref == 'refs/heads/main'

- name: Save Commit Header
run: |
echo "COMMIT_MESSAGE_HEADER=$(git log -1 --pretty=%B | head -n 1)" >> "${GITHUB_ENV}"
- name: Slack failure notification
if: ${{ failure() && github.ref == 'refs/heads/main' }}
uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
Expand All @@ -51,7 +48,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":x: *GitHub Workflow Failed!* \n\nA workflow has failed in the repository *<https://github.com/${{ github.repository }}|${{ github.repository }}>*.\n\n*Workflow:* `${{ github.workflow }}`\n*Branch:* `${{ github.ref_name }}`\n*Commit:* `${{ github.sha }}` - _`${{ env.COMMIT_MESSAGE_HEADER }}`_\n*Author:* `${{ github.event.head_commit.author.name }}`"}},
"text": ":x: *GitHub Workflow Failed!* \n\nA workflow has failed in the repository *<https://github.com/${{ github.repository }}|${{ github.repository }}>*.\n\n*Workflow:* `${{ github.workflow }}`\n*Branch:* `${{ github.ref_name }}`\n*Commit:* `${{ github.sha }}`\n*Author:* `${{ github.event.head_commit.author.name }}`"}},
{
"type": "actions",
"elements":[
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/organisation-security-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ jobs:
- run: terraform apply -auto-approve
if: github.event.ref == 'refs/heads/main'

- name: Save Commit Header
run: |
echo "COMMIT_MESSAGE_HEADER=$(git log -1 --pretty=%B | head -n 1)" >> "${GITHUB_ENV}"
- name: Slack failure notification
if: ${{ failure() && github.ref == 'refs/heads/main' }}
uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
Expand All @@ -51,7 +48,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":x: *GitHub Workflow Failed!* \n\nA workflow has failed in the repository *<https://github.com/${{ github.repository }}|${{ github.repository }}>*.\n\n*Workflow:* `${{ github.workflow }}`\n*Branch:* `${{ github.ref_name }}`\n*Commit:* `${{ github.sha }}` - _`${{ env.COMMIT_MESSAGE_HEADER }}`_\n*Author:* `${{ github.event.head_commit.author.name }}`"}},
"text": ":x: *GitHub Workflow Failed!* \n\nA workflow has failed in the repository *<https://github.com/${{ github.repository }}|${{ github.repository }}>*.\n\n*Workflow:* `${{ github.workflow }}`\n*Branch:* `${{ github.ref_name }}`\n*Commit:* `${{ github.sha }}`\n*Author:* `${{ github.event.head_commit.author.name }}`"}},
{
"type": "actions",
"elements":[
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/test-alert-workflow.yml

This file was deleted.

0 comments on commit 2211510

Please sign in to comment.