name: Update Autogenerated Files on: push: branches: - master jobs: regen-autogenerated-files: runs-on: ubuntu-latest if: github.event.pull_request.head.repo.full_name == github.repository steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: python-version: 3.9 - run: make regen-all - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v4 with: commit-message: "[automated] Update auto-generated files" title: "[automated] Update auto-generated files" delete-branch: true token: ${{ secrets.GITHUB_TOKEN }}