Skip to content

Commit

Permalink
Added slack token and channel to workflow secret (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulreddy15 authored Jan 28, 2025
1 parent 95b368a commit bd88732
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/reusable_image_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ on:
aws_access_key_secret:
description: 'AWS key secret'
required: false
slack_channel:
required: true
slack_token:
required: true

env:
GITHUB_TOKEN: ${{ secrets.bot_token }}
Expand Down Expand Up @@ -194,8 +198,8 @@ jobs:
- name: Notify failure via Slack
uses: archive/github-actions-slack@master
with:
slack-bot-user-oauth-access-token: ${{ secrets.COREINT_SLACK_TOKEN }}
slack-channel: ${{ secrets.COREINT_SLACK_CHANNEL }}
slack-bot-user-oauth-access-token: ${{ secrets.slack_token }}
slack-channel: ${{ secrets.slack_channel }}
slack-text: "❌ `${{ env.ORIGINAL_REPO_NAME }}`: [image release failed](${{ github.server_url }}/${{ env.ORIGINAL_REPO_NAME }}/actions/runs/${{ github.run_id }})."

update-title-on-failure:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/reusable_nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
required: true
docker_password:
required: true
slack_channel:
required: true
slack_token:
required: true

inputs:
target_branches:
Expand Down Expand Up @@ -123,6 +127,6 @@ jobs:
- name: Notify failure via Slack
uses: archive/github-actions-slack@master
with:
slack-bot-user-oauth-access-token: ${{ secrets.COREINT_SLACK_TOKEN }}
slack-channel: ${{ secrets.COREINT_SLACK_CHANNEL }}
slack-bot-user-oauth-access-token: ${{ secrets.slack_token }}
slack-channel: ${{ secrets.slack_channel }}
slack-text: "❌ `${{ inputs.docker_image }}`: [Nightly tests/release failed](${{ github.server_url }}/${{ inputs.docker_image }}/actions/runs/${{ github.run_id }})."

0 comments on commit bd88732

Please sign in to comment.