We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7012bc commit e538e0eCopy full SHA for e538e0e
.github/workflows/release-preview.yaml
@@ -16,7 +16,16 @@ jobs:
16
uses: actions/checkout@v4
17
with:
18
fetch-depth: 0
19
- ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }}
+ ref: ${{ github.event.pull_request.head.ref }}
20
+
21
+ - name: Simulate merge to main
22
+ run: |
23
+ git config --global user.name "github-actions[bot]"
24
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
25
+ git fetch origin main
26
+ git checkout main
27
+ git checkout -b temp-preview-branch
28
+ git merge --no-ff origin/${{ github.event.pull_request.head.ref }} -m "temp: simulate PR merge for release preview"
29
30
- name: Setup Node.js
31
uses: actions/setup-node@v4
0 commit comments