chore: release main (#171) #126
This file contains 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: Run Release Please | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
release-please: | |
permissions: | |
contents: write # for google-github-actions/release-please-action to create release commit | |
pull-requests: write # for google-github-actions/release-please-action to create release PR | |
runs-on: ubuntu-latest | |
# Release-please creates a PR that tracks all changes | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
command: manifest | |
token: ${{secrets.RELEASE_PLEASE_ACTION_TOKEN}} | |
default-branch: main | |
signoff: "OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com>" | |
outputs: | |
releases_created: ${{ steps.release.outputs.releases_created }} | |
# these are generated by release-please b/c this is in a manifest repo. | |
buf_release_tag: ${{ steps.release.outputs.protobuf--tag_name }} | |
json_release_tag: ${{ steps.release.outputs.json--tag_name }} | |
push-module: | |
needs: release-please | |
name: push schema to buf registry | |
runs-on: ubuntu-latest | |
if: ${{ needs.release-please.outputs.releases_created && needs.release-please.outputs.buf_release_tag }} | |
steps: | |
# Run `git checkout` | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ needs.release-please.outputs.buf_release_tag }} | |
# Install the `buf` CLI | |
- uses: bufbuild/buf-setup-action@v1 | |
# Push module to the BSR | |
- name: bsr-push | |
run: BUF_TOKEN="${{ secrets.BUF_TOKEN }}" buf push --tag "${{ needs.release-please.outputs.buf_release_tag }}" protobuf | |
create-schema-store-issue: | |
needs: release-please | |
name: create schema release reminder issue | |
runs-on: ubuntu-latest | |
if: ${{ needs.release-please.outputs.releases_created && needs.release-please.outputs.json_release_tag }} | |
steps: | |
# Run `git checkout` | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ needs.release-please.outputs.json_release_tag }} | |
- uses: JasonEtco/create-an-issue@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAG: ${{ needs.release-please.outputs.json_release_tag }} | |
with: | |
filename: .github/schema-store-issue-template.md |