Skip to content

upgrade devbox runtime crd, rewrite devbox controller. #5100

upgrade devbox runtime crd, rewrite devbox controller.

upgrade devbox runtime crd, rewrite devbox controller. #5100

name: Check-LinkError
on:
- push
- pull_request_target
- workflow_dispatch
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
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/[email protected]
if: ${{ (github.event_name == 'pull_request_target') }}
with:
version: v0.0.6
env:
GH_TOKEN: "${{ secrets.GH_PAT }}"
SEALOS_TYPE: "pr_comment"
SEALOS_FILENAME: "report.md"
SEALOS_REPLACE_TAG: "DEFAULT_REPLACE_LYCHEE"
- name: Exit result
run: |
echo "Output exit code is ${{ env.lychee_exit_code }}"
exit ${{ env.lychee_exit_code }}