Skip to content

docs: prefer AGENT_CONTROL_DB_URL in configuration docs #86

docs: prefer AGENT_CONTROL_DB_URL in configuration docs

docs: prefer AGENT_CONTROL_DB_URL in configuration docs #86

name: Check Card Links
on:
pull_request:
branches:
- main
- "release/**"
jobs:
link-check:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Run link checker
id: run-check
run: |
set -e
SUMMARY_PATH="card-links-summary.md"
python .github/workflows/check_card_links.py --root . --timeout 10 --verbose --github-annotations --summary-file "$SUMMARY_PATH" || echo "exit_code=$?" >> $GITHUB_OUTPUT
echo "summary_path=$SUMMARY_PATH" >> $GITHUB_OUTPUT
- name: Upload summary artifact (always)
if: always()
uses: actions/upload-artifact@v4
with:
name: card-links-summary
path: ${{ steps.run-check.outputs.summary_path }}
- name: Comment on PR with summary
if: ${{ github.event_name == 'pull_request' && always() }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: Card Links Check
recreate: false
path: ${{ steps.run-check.outputs.summary_path }}
- name: Fail if errors detected
if: ${{ steps.run-check.outputs.exit_code != '' }}
run: exit 1