|
| 1 | +name: release-please-develop |
| 2 | + |
| 3 | +# Experimental / pre-release lane for the `develop` branch. |
| 4 | +# |
| 5 | +# This is a thin caller around the SHARED reusable workflow |
| 6 | +# openfga/.github/.github/workflows/release-please-prerelease.yml. The common |
| 7 | +# logic lives there so every SDK can onboard by copying just this file. |
| 8 | +# |
| 9 | +# It is completely separate from release-please.yml (the stable main flow): |
| 10 | +# * targets the long-lived `develop` branch |
| 11 | +# * only ever cuts pre-release versions (alpha/beta/rc) — enforced by the |
| 12 | +# reusable workflow. Stable releases must go through main. |
| 13 | +# |
| 14 | +# Triggers: |
| 15 | +# * workflow_dispatch → build a release PR for an explicit pre-release version |
| 16 | +# * push to develop → when the `release:` PR merges, tag + draft + publish |
| 17 | + |
| 18 | +permissions: |
| 19 | + contents: read |
| 20 | + |
| 21 | +on: |
| 22 | + push: |
| 23 | + branches: [develop] |
| 24 | + workflow_dispatch: |
| 25 | + inputs: |
| 26 | + release-version: |
| 27 | + description: > |
| 28 | + Explicit pre-release version to cut (e.g. 0.10.0-beta.1, 0.10.0-rc.2). |
| 29 | + Must include an alpha/beta/rc suffix. Stable versions are rejected. |
| 30 | + required: true |
| 31 | + type: string |
| 32 | + |
| 33 | +jobs: |
| 34 | + prerelease: |
| 35 | + permissions: |
| 36 | + contents: write |
| 37 | + pull-requests: write |
| 38 | + if: | |
| 39 | + github.event_name == 'workflow_dispatch' || |
| 40 | + startsWith(github.event.head_commit.message, 'release:') |
| 41 | + uses: openfga/.github/.github/workflows/release-please-prerelease.yml@835baf31562809ad9eb884c73efc5b79318f700f # pin@main |
| 42 | + with: |
| 43 | + trigger-event: ${{ github.event_name }} |
| 44 | + release-version: ${{ inputs.release-version || '' }} |
| 45 | + base-branch: develop |
| 46 | + staging-branch: release-develop |
| 47 | + secrets: |
| 48 | + RELEASER_APP_CLIENT_ID: ${{ secrets.RELEASER_APP_CLIENT_ID }} |
| 49 | + RELEASER_APP_PRIVATE_KEY: ${{ secrets.RELEASER_APP_PRIVATE_KEY }} |
| 50 | + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} |
| 51 | + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |
| 52 | + |
0 commit comments