feat(devbox): zod to openapi (#5572) #240
This file contains hidden or 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: Check-LinkError | |
| on: | |
| - push | |
| - pull_request | |
| - workflow_dispatch | |
| jobs: | |
| linkChecker: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| - name: Install lychee | |
| run: | | |
| LYCHEEVERSION="0.13.0" | |
| curl -sLO "https://github.com/lycheeverse/lychee/releases/download/v${LYCHEEVERSION}/lychee-v${LYCHEEVERSION}-x86_64-unknown-linux-gnu.tar.gz" | |
| tar -xvzf "lychee-v${LYCHEEVERSION}-x86_64-unknown-linux-gnu.tar.gz" | |
| rm "lychee-v${LYCHEEVERSION}-x86_64-unknown-linux-gnu.tar.gz" | |
| install -t "$HOME/.local/bin" -D lychee | |
| rm lychee | |
| echo "$HOME/.local/bin" >> "$GITHUB_PATH" | |
| - name: Link Checker | |
| run: | | |
| set +e | |
| lychee --verbose --format 'markdown' './**/*.md' | |
| exit_code=$? | |
| set -e | |
| echo "lychee_exit_code=$exit_code" >> $GITHUB_ENV | |
| - name: Output the result | |
| id: output_result | |
| run: | | |
| echo "# 🤖 Generated by lychee action" > report.md | |
| GITHUB_WORKFLOW_URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}?check_suite_focus=true" | |
| cat .dummy.report.md >> report.md | |
| echo "## Full action output" >> report.md | |
| echo "[Full Github Actions output](${GITHUB_WORKFLOW_URL})" >> report.md | |
| cat report.md | |
| - name: Gh Rebot for Sealos | |
| uses: labring/gh-rebot@v0.0.6 | |
| if: ${{ (github.event_name == 'pull_request') }} | |
| with: | |
| version: v0.0.6 | |
| env: | |
| GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
| SEALOS_TYPE: "pr_comment" | |
| SEALOS_FILENAME: "report.md" | |
| SEALOS_REPLACE_TAG: "DEFAULT_REPLACE_LYCHEE" | |
| - name: Exit result | |
| env: | |
| LYCHEE_EXIT_CODE: ${{ env.lychee_exit_code }} | |
| run: | | |
| echo "Output exit code is ${LYCHEE_EXIT_CODE}" | |
| exit "${LYCHEE_EXIT_CODE}" |