feat: release automation configs (#262) #1
This file contains hidden or 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: 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 }} |