From f04b1a0047149531388aa14f138edd1d18663679 Mon Sep 17 00:00:00 2001 From: midudev Date: Sun, 8 Aug 2021 21:35:52 +0200 Subject: [PATCH] Make deploy to work only on master --- .github/workflows/pipeline.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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