Skip to content

Commit

Permalink
chore(ci) : Deploy to staging through a PR label
Browse files Browse the repository at this point in the history
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 ^^
  • Loading branch information
vperron committed Sep 19, 2024
1 parent 1af0ec7 commit 4b06865
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4b06865

Please sign in to comment.