Skip to content

Commit

Permalink
Merge pull request #56 from samkim/bulk-check
Browse files Browse the repository at this point in the history
Add api update workflow
  • Loading branch information
samkim authored Sep 6, 2023
2 parents 8051049 + 6808e09 commit 8c72fed
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/manual-api-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Update for API change
on:
workflow_dispatch:
inputs:
buftag:
description: Tag or commit from https://buf.build/authzed/api/tags/main
required: true
type: string
jobs:
test:
name: "Create PR for API update"
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: "Update Buf Script"
id: buf-update
uses: authzed/actions/buf-api-update@main
with:
api-commit: ${{ inputs.buftag }}
spec-path: build.gradle
file-format: gradle
- name: "Output update status"
env:
UPDATED_STATUS: ${{ steps.buf-update.outputs.updated }}
run: |
echo "Update status: $UPDATED_STATUS"
- name: "Update README package version"
uses: authzed/actions/semver-update@main
if: steps.buf-update.outputs.updated == 'true'
with:
sourcefile-path: README.md
version-regex: "<artifactId>authzed</artifactId>\n<version>(.+)</version>"
version-change: minor
- name: Create Pull Request
uses: peter-evans/[email protected]
if: steps.buf-update.outputs.updated == 'true'
with:
delete-branch: "true"
title: Update API to ${{ inputs.buftag }}
branch: api-change/${{ inputs.buftag }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8c72fed

Please sign in to comment.