mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
ci: fetch changeset base branch when snapshot (#12508)
* ci: fetch changeset base branch * Update .github/workflows/snapshot-release.yml Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * Remove redundant changeset pre exit command * Fix indentation in snapshot-release workflow --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
This commit is contained in:
parent
6fc29e3c24
commit
f71052df01
1 changed files with 7 additions and 1 deletions
8
.github/workflows/snapshot-release.yml
vendored
8
.github/workflows/snapshot-release.yml
vendored
|
@ -63,7 +63,13 @@ jobs:
|
|||
ref: ${{ steps.refs.outputs.head_ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- run: git fetch origin main:main
|
||||
- name: Extract base branch from .changeset/config.json
|
||||
id: getBaseBranch
|
||||
run: |
|
||||
baseBranch=$(jq -r '.baseBranch' .changeset/config.json)
|
||||
echo "baseBranch=${baseBranch}" >> $GITHUB_OUTPUT
|
||||
|
||||
- run: git fetch origin ${{ steps.getBaseBranch.outputs.baseBranch }}:${{ steps.getBaseBranch.outputs.baseBranch }}
|
||||
|
||||
- name: Setup PNPM
|
||||
uses: pnpm/action-setup@v3
|
||||
|
|
Loading…
Reference in a new issue