Skip to content

Commit e538e0e

Browse files
author
rahul-infra
committed
updated release.yaml
1 parent d7012bc commit e538e0e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release-preview.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@ jobs:
1616
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
19-
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }}
19+
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"
2029
2130
- name: Setup Node.js
2231
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)