Skip to content

Commit

Permalink
internal release updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bczoma committed Mar 5, 2024
1 parent 2521b47 commit ff9a08b
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/prep-internal-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
on:
workflow_dispatch:
inputs:
prev_branch_name:
description: 'Prev branch name, must start with v'
required: true
default: 'v0.1.0-rc.1'
release_branch_name:
description: 'Release branch name, must start with v'
required: true
default: 'v0.1.0-rc.1'
default: 'v0.1.0-rc.2'


jobs:
Expand Down Expand Up @@ -86,12 +90,21 @@ jobs:
echo Review and approve PR before release can continue
exit 1 // force actions stop here
- name: Create the release branch
uses: peterjgrainger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: "${{ github.event.inputs.release_branch_name }}"
- name: Create release branch starting point
run: |
git push origin refs/heads/${{ github.event.inputs.prev_branch_name }}:${{ github.event.inputs.release_branch_name }}
- name: Create PR to release branch
run: |
CURRENT_BRANCH=${GITHUB_REF_NAME}
gh pr create -B ${{ github.event.inputs.release_branch_name }} --title "New release ${{ github.event.inputs.release_branch_name }}" --body 'Created by Github action'
# - name: Create PR to release branch
# uses: peterjgrainger/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# branch: "${{ github.event.inputs.release_branch_name }}"

# - name: Tag the release branch
# if: env.NEXT_DEV_VERSION != ''
Expand Down

0 comments on commit ff9a08b

Please sign in to comment.