Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fetch release branch ref as head #2565

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .github/workflows/pr-website.yaml

This file was deleted.

213 changes: 0 additions & 213 deletions .github/workflows/publish-backend-plugin-manager.yaml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/push-website.yaml

This file was deleted.

20 changes: 16 additions & 4 deletions .github/workflows/update-changeset-prs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
branches:
- 'changeset-release/**'

env:
TURBO_SCM_BASE: ${{ github.event.before }}
TURBO_SCM_HEAD: ${{ github.sha }}

# enforce only one release action per release branch at a time
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -61,7 +57,23 @@ jobs:
# We want to commit the yarn.lock changes
run: yarn install

- name: Get latest commit on release branch
id: get-latest-commit
uses: actions/github-script@v6
with:
script: |
const { data } = await github.rest.repos.getBranch({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'release-1.3'
});
console.log('Latest commit SHA:', data.commit.sha);
core.setOutput('main_sha', data.commit.sha);

- name: Clean export dynamic
env:
TURBO_SCM_BASE: ${{ steps.get-latest-commit.outputs.main_sha }}
TURBO_SCM_HEAD: ${{ github.sha }}
# We want a clean dynamic folder
run: yarn run export-dynamic:clean --concurrency=75% --affected

Expand Down