Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 8c43ea6

Browse files
authored
fix: fetch release branch ref as head (#2565)
1 parent 0f745c2 commit 8c43ea6

File tree

4 files changed

+16
-316
lines changed

4 files changed

+16
-316
lines changed

.github/workflows/pr-website.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/publish-backend-plugin-manager.yaml

Lines changed: 0 additions & 213 deletions
This file was deleted.

.github/workflows/push-website.yaml

Lines changed: 0 additions & 56 deletions
This file was deleted.

.github/workflows/update-changeset-prs.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
branches:
66
- 'changeset-release/**'
77

8-
env:
9-
TURBO_SCM_BASE: ${{ github.event.before }}
10-
TURBO_SCM_HEAD: ${{ github.sha }}
11-
128
# enforce only one release action per release branch at a time
139
concurrency:
1410
group: ${{ github.workflow }}-${{ github.ref }}
@@ -61,7 +57,23 @@ jobs:
6157
# We want to commit the yarn.lock changes
6258
run: yarn install
6359

60+
- name: Get latest commit on release branch
61+
id: get-latest-commit
62+
uses: actions/github-script@v6
63+
with:
64+
script: |
65+
const { data } = await github.rest.repos.getBranch({
66+
owner: context.repo.owner,
67+
repo: context.repo.repo,
68+
branch: 'release-1.3'
69+
});
70+
console.log('Latest commit SHA:', data.commit.sha);
71+
core.setOutput('main_sha', data.commit.sha);
72+
6473
- name: Clean export dynamic
74+
env:
75+
TURBO_SCM_BASE: ${{ steps.get-latest-commit.outputs.main_sha }}
76+
TURBO_SCM_HEAD: ${{ github.sha }}
6577
# We want a clean dynamic folder
6678
run: yarn run export-dynamic:clean --concurrency=75% --affected
6779

0 commit comments

Comments
 (0)