docs: mark plugin as hcp ready #20
Workflow file for this run
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: Documentation | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- main | |
- test-docs-generator # for testing | |
jobs: | |
update: | |
name: Update | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Setup Go | |
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 | |
with: | |
go-version-file: 'go.mod' | |
- name: Generate documentation | |
run: make docs | |
- name: Create PR for docs update | |
uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # v4.2.4 | |
with: | |
add-paths: docs/ | |
branch: chore/update-docs | |
commit-message: "chore(docs): update documentation for #${{ github.event.number }}" | |
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | |
reviewers: ${{ github.actor }} | |
title: Update documentation | |
body: "This is an automatically created PR. Changes were created by running `make docs` after merging #${{ github.event.number }} (${{ github.sha }})." | |
base: ${{ github.event.pull_request.base.ref }} |