Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Commit

Permalink
Update create-release-pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
V00D00-child authored Nov 17, 2023
1 parent d171f84 commit ea1f442
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ on:
description: 'The base branch for git operations and the pull request.'
default: 'main'
required: true
release-type:
description: 'A SemVer version diff, i.e. major, minor, or patch. Mutually exclusive with "release-version".'
required: false
release-version:
description: 'A specific version to bump to. Mutually exclusive with "release-type".'
required: false
description: 'A specific version to bump to, i.e. 0.1.1'
required: true

jobs:
create-release-pr:
Expand All @@ -33,9 +30,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: MetaMask/action-create-release-pr@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release-type: ${{ github.event.inputs.release-type }}
release-version: ${{ github.event.inputs.release-version }}
- name: Create release branch
run: |
branch_name="release/v${{ github.event.inputs.release-version }}"
git checkout -b $branch_name
git push origin $branch_name
echo "::set-output name=branch_name::$branch_name"

0 comments on commit ea1f442

Please sign in to comment.