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 95af0e8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
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.issue.pull_request && contains(github.event.pull_request.labels.*.name, 'preview') }}
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: refs/pull/${{ github.event.issue.number }}/head #based on https://github.com/stackblitz-labs/pkg.pr.new/issues/187

- name: Setup Node.js v20
uses: actions/setup-node@v4
Expand Down

0 comments on commit 95af0e8

Please sign in to comment.