From dcccc878c8b9db8c8878c8c10abb3af4ee1653cb Mon Sep 17 00:00:00 2001 From: Riccardo Porreca Date: Mon, 22 Jan 2024 19:48:01 +0100 Subject: [PATCH] [WiP] Deploy from any branch, excluding PRs --- .github/workflows/ci-cd-renv.yml | 2 +- .github/workflows/ci-cd.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd-renv.yml b/.github/workflows/ci-cd-renv.yml index bcbdd9a..cd9bdc1 100644 --- a/.github/workflows/ci-cd-renv.yml +++ b/.github/workflows/ci-cd-renv.yml @@ -81,7 +81,7 @@ jobs: - name: Deploy to shinyapps.io # Continuous deployment only for pushes to the main / master branch - if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' + if: startsWith(github.ref, 'refs/heads/') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' env: SHINYAPPS_ACCOUNT: ${{ secrets.SHINYAPPS_ACCOUNT }} SHINYAPPS_TOKEN: ${{ secrets.SHINYAPPS_TOKEN }} diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index ddd662a..241fed4 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -61,7 +61,7 @@ jobs: - name: Deploy to shinyapps.io # Continuous deployment only for pushes to the main / master branch - if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' + if: startsWith(github.ref, 'refs/heads/') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' env: SHINYAPPS_ACCOUNT: ${{ secrets.SHINYAPPS_ACCOUNT }} SHINYAPPS_TOKEN: ${{ secrets.SHINYAPPS_TOKEN }}