-
Notifications
You must be signed in to change notification settings - Fork 25
52 lines (47 loc) · 1.85 KB
/
Copy pathrelease-please-develop.yml
File metadata and controls
52 lines (47 loc) · 1.85 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
49
50
51
name: release-please-develop
# Experimental / pre-release lane for the `develop` branch.
#
# This is a thin caller around the SHARED reusable workflow
# openfga/.github/.github/workflows/release-please-prerelease.yml. The common
# logic lives there so every SDK can onboard by copying just this file.
#
# It is completely separate from release-please.yml (the stable main flow):
# * targets the long-lived `develop` branch
# * only ever cuts pre-release versions (alpha/beta/rc) — enforced by the
# reusable workflow. Stable releases must go through main.
#
# Triggers:
# * workflow_dispatch → build a release PR for an explicit pre-release version
# * push to develop → when the `release:` PR merges, tag + draft + publish
permissions:
contents: read
on:
push:
branches: [develop]
workflow_dispatch:
inputs:
release-version:
description: >
Explicit pre-release version to cut (e.g. 0.10.0-beta.1, 0.10.0-rc.2).
Must include an alpha/beta/rc suffix. Stable versions are rejected.
required: true
type: string
jobs:
prerelease:
permissions:
contents: write
pull-requests: write
if: |
github.event_name == 'workflow_dispatch' ||
startsWith(github.event.head_commit.message, 'release:')
uses: openfga/.github/.github/workflows/release-please-prerelease.yml@835baf31562809ad9eb884c73efc5b79318f700f # pin@main
with:
trigger-event: ${{ github.event_name }}
release-version: ${{ inputs.release-version || '' }}
base-branch: develop
staging-branch: release-develop
secrets:
RELEASER_APP_CLIENT_ID: ${{ secrets.RELEASER_APP_CLIENT_ID }}
RELEASER_APP_PRIVATE_KEY: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}