Skip to content

Commit

Permalink
CBDEVOPS-478 enable slack notification for prod deployment (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
shashanksinha89 authored Feb 22, 2024
1 parent 6bf23b8 commit d2f292a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
name: ${{ needs.set_environment.outputs.my_env }}-release
steps:
- name: Generate Heroku Config
id: set_heroku_config
run: |
cat <<EOF > ~/.netrc
machine api.heroku.com
Expand All @@ -41,5 +42,13 @@ jobs:
password ${{ secrets.HEROKU_API_TOKEN }}
EOF
- name: release scaffold
id: release_scaffold
run: |
heroku config:set REACT_NATIVE_SCAFFOLD_REPO_BRANCH=$GITHUB_REF_NAME -a ${{ secrets.HEROKU_APP }}
- uses: act10ns/slack@v2
if: ${{ needs.set_environment.outputs.my_env }} == 'production'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
3 changes: 2 additions & 1 deletion .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ jobs:
working-directory: ${{ env.working-directory }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
release_branch: ${{ github.event.client_payload.release_branch }}
release_branch: ${{ github.event.client_payload.release_branch }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit d2f292a

Please sign in to comment.