2021-06-16 17:06:28 +00:00
name : "generate-docs"
on :
2021-07-08 18:58:04 +00:00
workflow_dispatch :
2021-06-17 19:08:50 +00:00
push :
2021-06-17 20:51:37 +00:00
branches :
2023-03-16 21:14:27 +00:00
- master
2021-06-23 16:38:59 +00:00
env :
GOPROXY : https://proxy.golang.org
2024-10-25 16:52:04 +00:00
GO_VERSION : '1.23.2'
2022-03-12 00:25:30 +00:00
permissions :
contents : read
2021-06-16 17:06:28 +00:00
jobs :
generate-docs :
2022-06-09 17:11:22 +00:00
if : github.repository == 'kubernetes/minikube'
2024-07-10 21:41:14 +00:00
runs-on : ubuntu-22.04
2021-06-16 17:06:28 +00:00
steps :
2024-10-23 17:02:17 +00:00
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2024-10-24 17:31:28 +00:00
- uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
2021-06-17 19:19:32 +00:00
with :
2021-06-23 16:38:59 +00:00
go-version : ${{env.GO_VERSION}}
2021-06-30 00:10:18 +00:00
- name : Generate Docs
id : gendocs
2021-06-16 17:06:28 +00:00
run : |
2021-06-29 20:34:04 +00:00
make generate-docs
2021-08-23 20:41:53 +00:00
c=$(git status --porcelain)
2022-11-07 17:53:20 +00:00
# The following is to support multiline with GITHUB_OUTPUT, see https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
2023-12-08 00:19:25 +00:00
echo "changes<<EOF" >> "$GITHUB_OUTPUT"
echo "$c" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
2021-06-29 20:34:04 +00:00
- name : Create PR
2021-06-30 00:42:30 +00:00
if : ${{ steps.gendocs.outputs.changes != '' }}
2024-09-18 19:16:20 +00:00
uses : peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
2021-06-29 20:34:04 +00:00
with :
token : ${{ secrets.MINIKUBE_BOT_PAT }}
commit-message : Update auto-generated docs and translations
committer : minikube-bot <minikube-bot@google.com>
author : minikube-bot <minikube-bot@google.com>
branch : gendocs
2021-06-29 20:52:45 +00:00
push-to-fork : minikube-bot/minikube
2021-06-29 20:41:23 +00:00
base : master
2021-06-29 20:34:04 +00:00
delete-branch : true
title : 'Update auto-generated docs and translations'
2021-07-01 19:41:09 +00:00
body : |
2021-07-01 19:55:01 +00:00
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.
2021-08-23 20:41:53 +00:00
2021-07-01 19:41:09 +00:00
```
${{ steps.gendocs.outputs.changes }}
```