Skip to content

Commit

Permalink
Create snapshot branch as part of release
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Jun 14, 2024
1 parent 22743aa commit e706119
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
submodules: recursive
- name: Use Node.js
uses: actions/setup-node@v4
Expand All @@ -33,8 +35,12 @@ jobs:
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Update stable branch
run: |
git fetch --unshallow
git checkout stable
git pull
git merge --no-ff main -m "Publish to stable"
git push
- name: Create snapshot
run: |
suffix=$(git rev-parse --short HEAD)
git checkout -b snapshot-${suffix}
git push origin snapshot-${suffix}

0 comments on commit e706119

Please sign in to comment.