-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from deseretdigital/feature-create-terraform-mo…
…dule-for-pub-sub-topics-sc-308777 Adds Release Notifier
- Loading branch information
Showing
2 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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._" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} |