From 7449949f878a78d89ced8da9c37b97a8286c1b94 Mon Sep 17 00:00:00 2001 From: Starlight220 <53231611+Starlight220@users.noreply.github.com> Date: Thu, 1 Aug 2024 22:44:32 +0300 Subject: [PATCH] update for new inspector --- .github/workflows/check-rli.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-rli.yml b/.github/workflows/check-rli.yml index 44ff0b45c1d..17fdf0284b7 100644 --- a/.github/workflows/check-rli.yml +++ b/.github/workflows/check-rli.yml @@ -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