Skip to content

Commit

Permalink
use label workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
sirineJ committed Dec 23, 2024
1 parent 871f8f9 commit 5266f90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Continuous Releases
on:
issue_comment:
types: [created]
pull_request:
types: [opened, synchronize]

jobs:
build:
if: ${{ github.event.comment.body == '/preview' && github.event.issue.pull_request }}
if: ${{ github.event.comment.body == '/preview' && github.event.issue.pull_request && contains(github.event.pull_request.labels.*.name, 'preview') }}
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 5266f90

Please sign in to comment.