File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,13 +15,18 @@ concurrency: preview-${{ github.ref }}
1515jobs :
1616 deploy-preview :
1717 runs-on : ubuntu-latest
18- if : github.event.action != 'closed' && (github.event.issue.pull_request && contains(github.event.comment.body, '@ preview deploy '))
18+ if : github.event.action != 'closed' || (github.event.issue.pull_request && contains(github.event.comment.body, '/ preview'))
1919 steps :
2020 - name : Checkout
2121 uses : actions/checkout@v4
2222 with :
2323 fetch-depth : 0
24- ref : ${{ github.head_ref}}
24+
25+ - name : Checkout Pull Request
26+ if : github.event.issue.pull_request && contains(github.event.comment.body, '/preview')
27+ run : hub pr checkout ${{ github.event.issue.number }}
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2530
2631 - name : Setup bun
2732 uses : oven-sh/setup-bun@v2
You can’t perform that action at this time.
0 commit comments