From 2ab56482d449e20449233c4e0daa1e5a31af09aa Mon Sep 17 00:00:00 2001 From: "Vipul Gupta (@vipulgupta2048)" Date: Thu, 26 May 2022 03:38:37 +0530 Subject: [PATCH] patch: Deploy to Heroku on PR merge Signed-off-by: Vipul Gupta (@vipulgupta2048) --- .github/workflows/deploy-to-heroku.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-to-heroku.yml b/.github/workflows/deploy-to-heroku.yml index 113b17d34f..bf708d8fb1 100644 --- a/.github/workflows/deploy-to-heroku.yml +++ b/.github/workflows/deploy-to-heroku.yml @@ -1,15 +1,16 @@ name: Deploy to Heroku on: - push: - branches: - - master + pull_request: + types: + - closed # Deploys to Heroku once each day schedule: - cron: "0 0 * * *" jobs: - build: + if_merged: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest environment: balena-docs steps: