minikube/.github/workflows/docs.yml

51 lines
1.8 KiB
YAML
Raw Normal View History

2021-06-16 17:06:28 +00:00
name: "generate-docs"
on:
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'
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'
runs-on: ubuntu-22.04
2021-06-16 17:06:28 +00:00
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- 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}}
- 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
c=$(git status --porcelain)
# 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
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 != '' }}
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-07-01 19:41:09 +00:00
```
${{ steps.gendocs.outputs.changes }}
```