Skip to content

Commit

Permalink
update for new inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlight220 authored Aug 1, 2024
1 parent 40e4330 commit 54a06a1
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/check-rli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,22 @@ jobs:
with:
repository: wpilibsuite/frc-docs

# Replace with current version
- name: Use PR version
run: |
# Filter source entries, setting the latest version
cat '.github/workflows/inspector.json' \
| jq '.sources |= map(select (.baseUrl | test("wpilibsuite/allwpilib")) | .latestVersion |= "${{ github.event.pull_request.head.sha }}")' \
| tee '.github/workflows/inspector.json'
# Run Inspector
- name: Inspect RLIs
uses: Starlight220/Inspector@v1.6
uses: docker://ghcr.io/starlight220/inspector:v1.9
id: inspector
with:
root: ${{ github.workspace }}
baseUrl: 'https://raw.githubusercontent.com/wpilibsuite/allwpilib/'
versionScheme: 'v\d{4}\.\d\.\d(?:-(?:alpha|beta)-\d)?|[0-9a-f]{40}'
latestVersion: ${{ github.event.pull_request.head.sha }}
ignoredFiles: '["source/docs/software/pathplanning/trajectory-tutorial/"]'
env:
INSPECTOR_CONFIG: '.github/workflows/inspector.json'

# Error if RLIs can't be automatically updated
- name: Set exit code
Expand Down

0 comments on commit 54a06a1

Please sign in to comment.