TH2-5224 - ingress anotations refactoring #682
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto generate helm-docs | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- release-v*[0-9].*[0-9].x | |
- master | |
paths: | |
- "chart/**" | |
- ".github/workflows/helm-docs.yaml" | |
jobs: | |
generate-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Generate helm docs | |
run: | | |
make docs | |
- name: Generate crd docs | |
run: | | |
sed -i 's/branch_current/${{ github.event.pull_request.head.ref }}/' ./ci/crd-gen.yaml | |
make crd-gen | |
git restore ./ci/crd-gen.yaml | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
token: "${{ secrets.TH2_NET_CI_PRIVATE_ACTION }}" | |
commit-message: Update helm and crd docs | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
base: ${{ github.event.pull_request.head.ref }} | |
branch: helm-and-crd-docs-${{ github.event.pull_request.head.ref }} | |
milestone: "${{ github.event.pull_request.milestone.title }}" | |
delete-branch: true | |
title: "[${{ github.event.pull_request.milestone.title }}][Auto] helm chart and crds readme" | |
body: "Generating helm chart and crd README" | |
labels: automated | |
- name: Check outputs | |
if: ${{ steps.cpr.outputs.pull-request-number }} | |
run: | | |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |