Skip to content

Merge pull request #1596 from openmeterio/dependabot/github_actions/a… #77

Merge pull request #1596 from openmeterio/dependabot/github_actions/a…

Merge pull request #1596 from openmeterio/dependabot/github_actions/a… #77

Workflow file for this run

name: Python SDK
permissions:
contents: write
pull-requests: write
on:
workflow_dispatch:
push:
branches:
- main
paths:
- api/openapi.yaml
- .github/workflows/sdk-python.yaml
jobs:
generate:
name: Generate
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
ref: ${{ github.head_ref }}
- name: Generate
uses: dagger/dagger-for-github@fc945fa66fc7bfa72bc80f85b1a1ef4bd1d30cbb # v6.11.0
with:
verb: call
args: generate python-sdk -o api/client/python
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: "0.13.1"
- name: Open pull request
uses: peter-evans/create-pull-request@v7
with:
branch: openapi/python-sdk
branch-suffix: short-commit-hash
delete-branch: true
commit-message: "chore(api): generate python client"
title: "[bot] Re-generate Python client"
body: "This PR was automatically generated."
labels: |
area/api
release-note/misc
token: ${{ secrets.BOT_GITHUB_TOKEN }}