Skip to content

Commit

Permalink
ci: Auto-create release branch for feature release (#4047)
Browse files Browse the repository at this point in the history
When an automated feature release is created, we should also create
the corresponding release branch.
  • Loading branch information
joeyparrish committed Mar 22, 2022
1 parent 8cd42ca commit 1399ec2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,18 @@ jobs:
project_id: shaka-player-demo
version: ${{ env.APPSPOT_SUBDOMAIN }}
promote: ${{ env.APPSPOT_PROMOTE }}

auto-branch:
runs-on: ubuntu-latest
needs: release
if: needs.release.outputs.release_created && endsWith(needs.release.outputs.tag_name, '.0')
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Create release branch
run: |
TAG=${{ needs.release.outputs.tag_name }}
BRANCH=$(echo "$TAG" | sed -e 's/\.0$/.x/')
git push origin HEAD:"$BRANCH"

0 comments on commit 1399ec2

Please sign in to comment.