-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (37 loc) · 983 Bytes
/
release-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Creates packages
name: Create Release PR
permissions:
contents: write
pull-requests: write
on:
workflow_dispatch:
inputs:
level:
description: 'Release level'
required: true
default: 'minor'
type: choice
options:
- patch
- minor
- major
jobs:
release:
name: Release
runs-on: ubuntu-latest
container:
# See https://github.com/3box/rust-builder
image: public.ecr.aws/r5b3e0r5/3box/rust-builder:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: |
git config user.email "[email protected]"
git config user.name "Github Automation"
- run: npm install @openapitools/[email protected] -g
- name: Create release PR
run: make RELEASE_LEVEL=${{ github.event.inputs.level }} release-pr