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

jobs:
build:
if: ${{ github.event.comment.body == '/preview' && github.event.issue.pull_request }}
if: ${{ github.event.label.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 90fc87c

Please sign in to comment.