Create release PRs #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create release PR | |
on: | |
workflow_dispatch: | |
inputs: | |
bump: | |
description: 'Version bump level' | |
required: true | |
default: patch | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
jobs: | |
create-release-pr: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
issues: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
- id: run-create-release-pr-sh | |
env: | |
BUMP: ${{ inputs.bump }} | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
# git config | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
# run shell script | |
cd scripts | |
./create-release-pr.sh |