Skip to content

Commit

Permalink
add RLI checker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlight220 committed Oct 26, 2022
1 parent 02c4772 commit 29a87e9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/launch-inspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Launch Inspector
on: [pull_request]

jobs:
launch:
runs-on: ubuntu-latest
steps:
- name: Checkout frc-docs
uses: actions/checkout@v2
with:
repository: wpilibsuite/frc-docs
path: frc-docs
token: ${{ secrets.GH_ADMIN_TOKEN }}

- name: Inspect RLIs
uses: Starlight220/[email protected]
id: inspector
with:
root: frc-docs
baseUrl: 'https://raw.githubusercontent.com/wpilibsuite/allwpilib/'
versionScheme: 'v\d{4}\.\d\.\d(?:-(?:alpha|beta)-\d)?|[0-9a-f]{40}'
latestVersion: ${{ github.sha }}
ignoredFiles: '["source/docs/software/pathplanning/trajectory-tutorial/"]'

# Error if RLIs can't be automatically updated
- name: Set exit code
if: ${{ steps.inspector.outputs.needs-manual == false }}
run: exit 1

0 comments on commit 29a87e9

Please sign in to comment.