diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index c9fd5ee..e689bf1 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -32,10 +32,11 @@ jobs: start: npm run start-test wait-on: http://localhost:5000 - name: Deploy to Heroku + if: ${{ github.event_name == 'push' }} uses: akhileshns/heroku-deploy@v3.12.12 with: heroku_api_key: ${{secrets.HEROKU_API_KEY}} heroku_app_name: ${{secrets.HEROKU_APP}} heroku_email: ${{secrets.HEROKU_API_EMAIL}} - healthcheck: "https://${{secrets.HEROKU_APP}}/health" + healthcheck: "https://${{secrets.HEROKU_APP}}.herokuapp.com/health" rollbackonhealthcheckfailed: true