From 666511f06a75274902082eb38b993600ddd3fa64 Mon Sep 17 00:00:00 2001 From: Lucas Bajolet Date: Tue, 16 Jan 2024 13:50:35 -0500 Subject: [PATCH] workflows: release use make for docs checks Since the Makefile has a target for generating and checking that there's no diff between what's been generated and what's versioned, we don't need custom logic to perform the check, so we reuse this target for that step. --- .../notify-integration-release-via-manual.yaml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/notify-integration-release-via-manual.yaml b/.github/workflows/notify-integration-release-via-manual.yaml index 397db50..1f8a1c8 100644 --- a/.github/workflows/notify-integration-release-via-manual.yaml +++ b/.github/workflows/notify-integration-release-via-manual.yaml @@ -22,17 +22,9 @@ jobs: ref: ${{ github.event.inputs.branch }} # Ensure that Docs are Compiled - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 - - shell: bash - run: make generate - - shell: bash - run: | - if [[ -z "$(git status -s)" ]]; then - echo "OK" - else - echo "Docs have been updated, but the compiled docs have not been committed." - echo "Run 'make generate', and commit the result to resolve this error." - exit 1 - fi + - name: check docs are up-to-date + shell: bash + run: make check-generate # Perform the Release - name: Checkout integration-release-action uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2