Associate commits to heroku release in sentry #7
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: Associate commits to heroku release in sentry | |
on: | |
workflow_dispatch | |
jobs: | |
associate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: get release version | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
run: echo "HEROKU_RELEASE_VERSION=`heroku config:get HEROKU_RELEASE_VERSION -a chi-councilmatic-production`-chi-councilmatic-production" >> "$GITHUB_ENV" | |
- name: install sentry-cli | |
run: npm install @sentry/cli | |
- name: inform sentry about release | |
env: | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_AUTH_TOKEN: $${{ secrets.SENTRY_AUTH_TOKEN }} | |
run: sentry-cli releases new -p chicago-councilmatic $HEROKU_RELEASE_VERSION | |