Create Docs PR on Release #67
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: Create Docs PR on Release | |
on: | |
release: | |
types: [published] | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
create-pr: | |
if: github.event.release.prerelease == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Quix CLI | |
run: curl -fsSL https://github.com/quixio/quix-cli/raw/main/install.sh | bash | |
- name: Run Quix CLI to generate docs | |
run: quix docs "${{ github.workspace }}/docs/CLI Reference" | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: Update docs for the release ${{ github.event.release.tag_name }} | |
branch: "docs/update-docs-${{ github.run_id }}" | |
title: "Update docs for the release ${{ github.event.release.tag_name }}" | |
base: main | |
body: | | |
This PR updates the documentation for the release ${{ github.event.release.tag_name }}. | |
reviewers: luisquix, emanuel-quix, PatrickMiraP |