Skip to content

Commit

Permalink
Add CI workflows to auto-update beta & stable branches on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanjli committed Jun 23, 2024
1 parent 0848ec2 commit f8ef94d
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release-channel-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: release-channel-beta
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-beta.*'

jobs:
ff-branch-beta:
runs-on: ubuntu-latest
strategy:
fail-fast: false
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- run: |
git checkout beta
git merge --ff-only ${{ github.ref_name }}
- uses: ad-m/[email protected]
with:
branch: beta
45 changes: 45 additions & 0 deletions .github/workflows/release-channel-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: release-channel-stable
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
ff-branch-beta:
runs-on: ubuntu-latest
strategy:
fail-fast: false
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- run: |
git checkout beta
git merge --ff-only ${{ github.ref_name }}
- uses: ad-m/[email protected]
with:
branch: beta

ff-branch-stable:
runs-on: ubuntu-latest
strategy:
fail-fast: false
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- run: |
git checkout stable
git merge --ff-only ${{ github.ref_name }}
- uses: ad-m/[email protected]
with:
branch: stable

0 comments on commit f8ef94d

Please sign in to comment.