Skip to content

Commit

Permalink
ci: Generate Registry Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmechlark committed Sep 16, 2023
1 parent 70dd9af commit fbbf130
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,47 @@ jobs:
parallel-finished: true
file: ./covprofile

docs:
runs-on: ubuntu-latest
needs: [unit_test, integration_test]
permissions:
contents: write
outputs:
changed: ${{ steps.docs.outputs.changed }}
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.17

- run: make docs
- name: Check changes
id: docs
shell: bash
run: |
if [[ `git status --porcelain | grep "docs/"` ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
else
echo "changed=false" >> "$GITHUB_OUTPUT"
fi
- name: Push docs
if: steps.docs.outputs.changed
run: |
git config user.name github-actions
git config user.email [email protected]
git add docs/
git commit -m "docs: Generate Registry Documentation"
git push
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
needs: [lint, codespell, integration_test]
needs: [lint, codespell, integration_test, docs]
if: !needs.docs.outputs.changed
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
Expand Down

0 comments on commit fbbf130

Please sign in to comment.