Skip to content

Commit

Permalink
Merge pull request #778 from awanlin/topic/fix-heroku-error
Browse files Browse the repository at this point in the history
Add installing Heroku CLI to release workflow
  • Loading branch information
awanlin authored Dec 17, 2024
2 parents 0a826bc + 33cd015 commit eff89dc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
- name: build
run: yarn build:all

- name: Install Heroku CLI
run: curl https://cli-assets.heroku.com/install.sh | sh

- name: Login to Heroku Container registry
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
Expand All @@ -68,16 +71,16 @@ jobs:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:release -a ${{ secrets.HEROKU_APP_NAME }} web

# Post notification to Discord Announcements channel
# Post notification to Discord Announcements channel
- name: 'Check if last commit is a release'
id: check_if_release
run: node scripts/check-if-release.js ${{ github.sha }}
run: node scripts/check-if-release.js ${{ github.sha }}

- name: Discord notification
uses: Ilshidur/action-discord@0c4b27844ba47cb1c7bee539c8eead5284ce9fa9 # 0.3.2
if: steps.check_if_release.outputs.is_release == 'true'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_RELEASE_WEBHOOK }}
CURRENT_VERSION: ${{ steps.check_if_release.outputs.current_version }}
with:
args: 'The Backstage Demo site has been upgraded to release {{CURRENT_VERSION}} go check it out: https://demo.backstage.io'
args: 'The Backstage Demo site has been upgraded to release {{CURRENT_VERSION}} go check it out: https://demo.backstage.io'

0 comments on commit eff89dc

Please sign in to comment.