Skip to content

Commit

Permalink
Merge pull request hashicorp#40240 from hashicorp/b-slack-url
Browse files Browse the repository at this point in the history
.github/workflows: fix slack notification actions
  • Loading branch information
jar-b authored Nov 21, 2024
2 parents fb91a38 + d8cda59 commit 6ea8ba3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/comments-feed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
ISSUE_URL: ${{ github.event.issue.html_url }}
ISSUE_TITLE: ${{ github.event.issue.title }}
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook: ${{ secrets.FEED_SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
{
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/label-notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ jobs:
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
env:
ISSUE_TITLE: ${{ toJSON(github.event.issue.title || github.event.pull_request.title) }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
channel-id: ${{ secrets.SLACK_CHANNEL }}
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
{
"channel" : "${{ secrets.SLACK_CHANNEL }}",
"blocks": [
{
"type": "section",
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/post_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,12 @@ jobs:
- name: Send Slack Notification Upon Failure
if: ${{ failure() }}
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
channel-id: ${{ secrets.SLACK_CHANNEL }}
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
{
"channel" : "${{ secrets.SLACK_CHANNEL }}",
"blocks": [
{
"type": "section",
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request_feed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
MERGED_BY_URL: ${{ github.event.pull_request.merged_by.html_url }}
MERGED_BY_LOGIN: ${{ github.event.pull_request.merged_by.login }}
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook: ${{ secrets.FEED_SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
{
Expand All @@ -61,7 +61,7 @@ jobs:
PR_AUTHOR_URL: ${{ github.event.pull_request.user.html_url }}
PR_AUTHOR_LOGIN: ${{ github.event.pull_request.user.login }}
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook: ${{ secrets.FEED_SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
{
Expand All @@ -85,7 +85,7 @@ jobs:
PR_AUTHOR_URL: ${{ github.event.pull_request.user.html_url }}
PR_AUTHOR_LOGIN: ${{ github.event.pull_request.user.login }}
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook: ${{ secrets.FEED_SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
{
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
PR_HTML_URL: ${{ github.event.pull_request.html_url }}
PR_TITLE: ${{ github.event.pull_request.title }}
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook: ${{ secrets.FEED_SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
{
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
id: slack
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook: ${{ secrets.FEED_SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
{
Expand Down

0 comments on commit 6ea8ba3

Please sign in to comment.