[Prod] Goal source bugfix, update python, don't roll up goals, create hidden monitoring goal template, store uncovered code report as build artifact #89
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
name: Pull Request Notifications | |
on: | |
pull_request: | |
branches: | |
- production | |
types: [ready_for_review] | |
jobs: | |
notify_slack: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Notify slack when a PR to production is opened | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
run: | | |
if [ "$PR_NUMBER" != "" ]; then | |
PR_LINK="https://github.com/$GITHUB_REPOSITORY/pull/$PR_NUMBER" | |
TEXT_MESSAGE=":rocket: A production PR <$PR_LINK|$PR_NUMBER> is now open!" | |
else | |
TEXT_MESSAGE=":rocket: A new change was pushed to the production branch. Check the latest commits for more details." | |
fi | |
curl -X POST -H "Authorization: Bearer $SLACK_BOT_TOKEN" \ | |
-H 'Content-type: application/json;charset=utf-8' \ | |
--data "{ | |
\"channel\": \"acf-ohs-ttahub--contractor-customer-team\", | |
\"text\": \"$TEXT_MESSAGE\" | |
}" https://slack.com/api/chat.postMessage |