Skip to content

Commit

Permalink
fix: fetch release branch ref as head (#2565)
Browse files Browse the repository at this point in the history
  • Loading branch information
schultzp2020 authored Nov 25, 2024
1 parent 0f745c2 commit 8c43ea6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 316 deletions.
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

0 comments on commit 8c43ea6

Please sign in to comment.