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 e982a3d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Continuous Releases
on:
issue_comment:
types: [created]
on: [pull_request]

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 e982a3d

Please sign in to comment.