Skip to content

Fix auto stub generation #5

Fix auto stub generation

Fix auto stub generation #5

Workflow file for this run

name: Update stub
on:
push:
jobs:
stubgen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
submodules: recursive
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Auto stub generation
run: |
pip install build
python update_stub.py
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: Auto stub generation
branch: ${{ steps.extract_branch.outputs.branch }}