name: "generate-docs" on: push: branches: - master env: GOPROXY: https://proxy.golang.org GO_VERSION: 1.16.4 jobs: generate-docs: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: ${{env.GO_VERSION}} stable: true - name: Generate Docs id: gendocs run: | make generate-docs echo "::set-output name=changes::$(git status --porcelain)" - name: Create PR if: ${{ steps.gendocs.outputs.changes != '' }} uses: peter-evans/create-pull-request@v3 with: token: ${{ secrets.MINIKUBE_BOT_PAT }} commit-message: Update auto-generated docs and translations committer: minikube-bot author: minikube-bot branch: gendocs push-to-fork: minikube-bot/minikube base: master delete-branch: true title: 'Update auto-generated docs and translations' body: | Committing changes resulting from `make generate-docs`. This PR is auto-generated by the [gendocs](https://github.com/kubernetes/minikube/blob/master/.github/workflows/docs.yml) CI workflow. ``` ${{ steps.gendocs.outputs.changes }} ```