From 4b0686550178a7eea71778b3a8c8212934d26135 Mon Sep 17 00:00:00 2001 From: Victor Perron Date: Thu, 19 Sep 2024 09:34:08 +0200 Subject: [PATCH] chore(ci) : Deploy to staging through a PR label It is annoying to be competing with each other when pushing code, so I feel like it's going to help if we decide to deploy through adding a non-mandatory label than "all the time unless draft". Also, drafts are something different, at least for me ^^ --- .github/workflows/build_deploy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index ac2484400..f2b818e58 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -9,14 +9,13 @@ on: branches: [main] pull_request: branches: [main] - # default types + ready_for_review - types: [opened, synchronize, repopened, ready_for_review] + types: [opened, synchronize, reopened, ready_for_review, labeled] jobs: build: runs-on: ubuntu-latest - if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.draft) }} + if: contains(github.event.pull_request.labels.*.name, 'deploy-to-staging') strategy: matrix: