Merge pull request #1797 from openmeterio/feat/plan-api-impl #113
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: Node SDK | |
permissions: | |
contents: write | |
pull-requests: write | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- api/openapi.yaml | |
- .github/workflows/sdk-node.yaml | |
jobs: | |
generate: | |
name: Generate | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Generate | |
uses: dagger/dagger-for-github@ad6a4e308a42fb2cf9be8b060f9aba9d57d4c9aa # v6.14.0 | |
with: | |
verb: call | |
args: generate node-sdk -o api/client/node | |
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }} | |
version: "0.13.6" | |
- name: Open pull request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
branch: openapi/node-sdk | |
branch-suffix: short-commit-hash | |
delete-branch: true | |
commit-message: "chore(api): generate node client" | |
title: "[bot] Re-generate Node.js client" | |
body: "This PR was automatically generated." | |
labels: | | |
area/api | |
release-note/misc | |
token: ${{ secrets.BOT_GITHUB_TOKEN }} |