Skip to content

Commit

Permalink
Fix validate action (#431)
Browse files Browse the repository at this point in the history
- remove test code
- replace direct bin call with the full URL call

**Note:** The workflow is not working here, but only because it is the
workflow from the "main" branch.
Here is the same workflow from the PR branch
https://github.com/hazelcast/management-center-docs/actions/runs/12713014178/job/35441301089.
It fails because of unsuccessful orphan check which shows that workflow
actually works :)
  • Loading branch information
fantkolja authored Jan 10, 2025
1 parent 7ad74cd commit ffe68de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/actions/validate/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ runs:
run: |
npm i
npm i -D hazelcast/hazelcast-docs-tools#v1.1.0 [email protected] [email protected]
load-check-links-playbook -r $GITHUB_REPOSITORY -b $GITHUB_BASE_REF --log-level ${{ inputs.check-links-loader-log-level }}
./node_modules/.bin/load-check-links-playbook -r $GITHUB_REPOSITORY -b $GITHUB_BASE_REF --log-level ${{ inputs.check-links-loader-log-level }}
./node_modules/.bin/antora --fetch --to-dir test --log-level=warn --log-failure-level=warn --extension=./node_modules/hazelcast-docs-tools/antora-extensions/antora-link-checker-extension.js check-links-playbook.yml
- name: Check orphan pages
shell: bash
run: check-orphan-pages -d ${{ inputs.orphan-checker-directory }} --log-failure-level ${{ inputs.orphan-checker-log-failure-level }}
run: ./node_modules/.bin/check-orphan-pages -d ${{ inputs.orphan-checker-directory }} --log-failure-level ${{ inputs.orphan-checker-log-failure-level }}
2 changes: 0 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ jobs:
uses: actions/checkout@v4
- name: Check dead links
uses: hazelcast/hazelcast-docs/.github/actions/validate@main
with:
orphan-checker-directory: "Some literal string"


0 comments on commit ffe68de

Please sign in to comment.