Skip to content

Commit

Permalink
Merge pull request #7 from deseretdigital/feature-create-terraform-mo…
Browse files Browse the repository at this point in the history
…dule-for-pub-sub-topics-sc-308777

Adds Release Notifier
  • Loading branch information
IanKnighton authored Oct 10, 2024
2 parents 2cfc789 + f3acccc commit 1e69f3e
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 3 deletions.
52 changes: 51 additions & 1 deletion .github/workflows/release-tagging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,54 @@ jobs:
with:
tag: ${{ needs.release-tag.outputs.RELEASE_TAG }}
name: Release ${{ needs.release-tag.outputs.RELEASE_TAG }}
body: ${{ needs.release-tag.outputs.RELEASE_TAG }}
body: ${{ needs.release-tag.outputs.RELEASE_TAG }}

release-notifier:
runs-on: ubuntu-latest
needs: ['release-tag', 'create-release']
name: 'Release Notifier'
steps:
- name: Send Notification
uses: slackapi/[email protected]
env:
SLACK_BOT_TOKEN: ${{ secrets.RELEASE_SLACKBOT_TOKEN }}
with:
channel-id: release
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": ":terraform: ${{github.event.repository.name}} release",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*${{github.event.repository.name}}* release."
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "${{needs.release-tag.outputs.RELEASE_TAG}}",
"emoji": true
},
"url": "https://github.com/deseretdigital/${{github.event.repository.name}}/releases/tag/${{needs.release-tag.outputs.RELEASE_TAG}}"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "_This is an automated message. It does not indicate the deploy was successful, and it will not post here if it has failed. Please check the action run for more details._"
}
]
}
]
}
6 changes: 4 additions & 2 deletions output.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
output "subscription_id" {
value = google_pubsub_subscription.subscription.id
value = google_pubsub_subscription.subscription.id
description = "The ID of the created subscription."
}

output "subscription_name" {
value = google_pubsub_subscription.subscription.name
value = google_pubsub_subscription.subscription.name
description = "The name of the created subscription."
}

0 comments on commit 1e69f3e

Please sign in to comment.