Skip to content

Commit

Permalink
update for new inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlight220 committed Aug 1, 2024
1 parent 103d94c commit 88859bc
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/check-rli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout frc-docs
uses: actions/checkout@v2
uses: actions/checkout@v4
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 88859bc

Please sign in to comment.