Skip to content

Commit

Permalink
workflows: release use make for docs checks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lbajolet-hashicorp committed Jan 16, 2024
1 parent 8b9b1c7 commit 666511f
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/notify-integration-release-via-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 666511f

Please sign in to comment.