Skip to content

Commit

Permalink
Merge pull request #87 from josephschorr/auto-update-clients
Browse files Browse the repository at this point in the history
Have the client updates auto-run in response to a published API release
  • Loading branch information
josephschorr authored Sep 7, 2023
2 parents 2d8771d + 56b25cc commit 0910e0e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release-client-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "Client updates for released API change"
on:
release:
types: ["published"]
jobs:
trigger:
runs-on: "ubuntu-latest"
name: "📦 Release Client Updates"
if: "${{ contains(github.ref_name, 'v') }}"
steps:
- uses: "peter-evans/repository-dispatch@v2"
name: "🕸️ Update authzed-node"
with:
token: "${{ secrets.EXTERNAL_REPO_TOKEN }}"
repository: "authzed/authzed-node"
event-type: "api_update"
client-payload: '{"BUFTAG": "${{ github.ref_name }}"}'
- uses: "peter-evans/repository-dispatch@v2"
name: "🐍 Update authzed-py"
with:
token: "${{ secrets.EXTERNAL_REPO_TOKEN }}"
repository: "authzed/authzed-py"
event-type: "api_update"
client-payload: '{"BUFTAG": "${{ github.ref_name }}"}'
- uses: "peter-evans/repository-dispatch@v2"
name: "💎 Update authzed-rb"
with:
token: "${{ secrets.EXTERNAL_REPO_TOKEN }}"
repository: "authzed/authzed-rb"
event-type: "api_update"
client-payload: '{"BUFTAG": "${{ github.ref_name }}"}'
- uses: "peter-evans/repository-dispatch@v2"
name: "☕ Update authzed-java"
with:
token: "${{ secrets.EXTERNAL_REPO_TOKEN }}"
repository: "authzed/authzed-java"
event-type: "api_update"
client-payload: '{"BUFTAG": "${{ github.ref_name }}"}'

0 comments on commit 0910e0e

Please sign in to comment.