Skip to content

Commit

Permalink
🚚 Install Heroku CLI on deploy action (#6056)
Browse files Browse the repository at this point in the history
Github Actions have been updating their image from Ubuntu 22 to Ubuntu 24, and this action doesn't contain the Heroku CLI by default, so we have to install it before being able to run it.

More info: AkhileshNS/heroku-deploy#184


**How to test**

* We'll have to approve the PR and test if the action works.
  • Loading branch information
jpelay authored Dec 19, 2024
1 parent dcf4b36 commit 92a0746
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-to-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ jobs:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout Repository
uses: actions/checkout@v4
- name: 'Install Heroku CLI'
run: curl https://cli-assets.heroku.com/install.sh | sh
- uses: akhileshns/[email protected] # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy-to-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ jobs:
run: |
echo "You must be Felienne to run this workflow :D" >&2
exit 1
- uses: actions/checkout@v4
- name: Checkout Repository
uses: actions/checkout@v4
- name: 'Install Heroku CLI'
run: curl https://cli-assets.heroku.com/install.sh | sh
- uses: akhileshns/[email protected] # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
Expand Down

0 comments on commit 92a0746

Please sign in to comment.