Skip to content

Commit

Permalink
Temporary disable slack GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sapience committed Mar 14, 2024
1 parent 1c188da commit ec83ba7
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Notify slack deployment start
uses: trustfractal/[email protected]
id: slack
env:
SLACK_BOT_TOKEN: "${{secrets.SLACK_BOT_TOKEN}}"
with:
channel: id-deployments
status: STARTING
color: warning
custom_attachments: |
[{ "title": "Environment", "value": "${{inputs.ENVIRONMENT}}", "short": true }]
# - name: Notify slack deployment start
# uses: trustfractal/[email protected]
# id: slack
# env:
# SLACK_BOT_TOKEN: "${{secrets.SLACK_BOT_TOKEN}}"
# with:
# channel: id-deployments
# status: STARTING
# color: warning
# custom_attachments: |
# [{ "title": "Environment", "value": "${{inputs.ENVIRONMENT}}", "short": true }]

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down Expand Up @@ -93,28 +93,28 @@ jobs:
run: |
git push -f origin HEAD:${{inputs.ENVIRONMENT}}-${{inputs.PRODUCT}}-${{inputs.PROJECT}}-latest
- name: Notify slack success
if: success()
uses: trustfractal/[email protected]
env:
SLACK_BOT_TOKEN: ${{secrets.SLACK_BOT_TOKEN}}
with:
message_id: ${{steps.slack.outputs.message_id}}
channel: id-deployments
status: SUCCESS
color: good
custom_attachments: |
[{ "title": "Environment", "value": "${{inputs.ENVIRONMENT}}", "short": true }]
# - name: Notify slack success
# if: success()
# uses: trustfractal/[email protected]
# env:
# SLACK_BOT_TOKEN: ${{secrets.SLACK_BOT_TOKEN}}
# with:
# message_id: ${{steps.slack.outputs.message_id}}
# channel: id-deployments
# status: SUCCESS
# color: good
# custom_attachments: |
# [{ "title": "Environment", "value": "${{inputs.ENVIRONMENT}}", "short": true }]

- name: Notify slack fail
if: failure()
uses: trustfractal/[email protected]
env:
SLACK_BOT_TOKEN: ${{secrets.SLACK_BOT_TOKEN}}
with:
message_id: ${{steps.slack.outputs.message_id}}
channel: id-deployments
status: FAILED
color: danger
custom_attachments: |
[{ "title": "Environment", "value": "${{inputs.ENVIRONMENT}}", "short": true }]
# - name: Notify slack fail
# if: failure()
# uses: trustfractal/[email protected]
# env:
# SLACK_BOT_TOKEN: ${{secrets.SLACK_BOT_TOKEN}}
# with:
# message_id: ${{steps.slack.outputs.message_id}}
# channel: id-deployments
# status: FAILED
# color: danger
# custom_attachments: |
# [{ "title": "Environment", "value": "${{inputs.ENVIRONMENT}}", "short": true }]

0 comments on commit ec83ba7

Please sign in to comment.