Skip to content

Commit

Permalink
rework workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlight220 committed Jan 10, 2022
1 parent e8dfb5c commit 520a937
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/launch-inspector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,31 @@ jobs:
run: |
import os
print('::set-output name=name::{}'.format(os.environ['GITHUB_REF'].split('/')[2]))
- uses: benc-uk/workflow-dispatch@v1
- name: Checkout frc-docs
uses: actions/checkout@v2
with: wpilibsuite/frc-docs
path: frc-docs
token: ${{ secrets.GH_ADMIN_TOKEN }}

- name: Update Inspector
working-directory: frc-docs
run: |
# Replace version
sed -E -- 's/"latestVersion": ".+",/"latestVersion": "version",/g' .github/workflows/inspector.json
- name: Run Inspector
uses: Starlight220/[email protected]
id: inspector
with:
root: frc-docs
env:
INSPECTOR_CONFIG: 'frc-docs/.github/workflows/inspector.json'

- Open Issue
uses: peter-evans/create-issue-from-file@v3
with:
workflow: Inspector - Tag
repo: wpilibsuite/frc-docs
title: ${{format('Update RLIs to version {0}', steps.get_tag.outputs.name)}}
content-filepath: ${{ steps.inspector.outputs.report-file-path }}
repository: wpilibsuite/frc-docs
token: ${{ secrets.GH_ADMIN_TOKEN }}
inputs: '{ "tag": "${{ steps.get_tag.outputs.name }}" }'

0 comments on commit 520a937

Please sign in to comment.