-
Notifications
You must be signed in to change notification settings - Fork 34
48 lines (45 loc) · 1.4 KB
/
release-please.yml
File metadata and controls
48 lines (45 loc) · 1.4 KB
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
41
42
43
44
45
46
47
48
name: release-please
permissions:
contents: read
on:
push:
branches: [main]
workflow_dispatch:
inputs:
bump-type:
description: >
Version bump type. Select 'explicit' to supply an exact version via
the 'release-version' field below. Select 'auto' to let
conventional-commits determine the bump automatically.
required: false
type: choice
default: 'auto'
options:
- auto
- patch
- minor
- major
- explicit
release-version:
description: >
Explicit version to release (e.g. 1.2.3 or 1.4.0-beta.1).
required: false
type: string
jobs:
release:
permissions:
contents: write
pull-requests: write
if: |
github.event_name == 'workflow_dispatch' ||
startsWith(github.event.head_commit.message, 'release:')
uses: openfga/sdk-generator/.github/workflows/release-please.yml@main
with:
trigger-event: ${{ github.event_name }}
bump-type: ${{ inputs.bump-type || 'auto' }}
release-version: ${{ inputs.release-version || '' }}
secrets:
RELEASER_APP_ID: ${{ secrets.RELEASER_APP_ID }}
RELEASER_APP_PRIVATE_KEY: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}