From 3f94622c39e7a7e00ddd635c14dc531440e53125 Mon Sep 17 00:00:00 2001 From: wdullaer Date: Wed, 13 Nov 2024 15:42:33 +0100 Subject: [PATCH] feat(ci): Trigger regeneration of community docs on release (#650) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Description Triggers a rebuild of the community docs when we release a new CLI version. ## Checklist (For exoscale contributors) * [ ] Changelog updated (under *Unreleased* block) * [ ] Testing ## Testing `GH_TOKEN` was set the value in the secret. ```console $ export GH_TOKEN= $ gh workflow run gen-cli.yaml -R exoscale/community-ng -f version=master ✓ Created workflow_dispatch event for gen-cli.yaml at main To see runs for this workflow, try: gh run list --workflow=gen-cli.yaml ``` --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f29a6e94..0e3bdf45f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,12 @@ on: - 'v[0-9]+\.[0-9]+\.[0-9]+' jobs: + community-docs: + runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ secrets.EXOSCALE_BUILD_GH_TOKEN }} + steps: + - run: gh workflow run gen-cli.yaml -R exoscale/community-ng -f version=${{ github.ref_name }} goreleaser: runs-on: ubuntu-latest