Skip to content

Commit

Permalink
Update monitor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mhosmar-cpr authored Aug 14, 2024
1 parent 5d7d3e5 commit 40430f3
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,23 @@ on:
# Run every day
- cron: '0 1 * * *'
jobs:
define-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.setup.outputs.matrix }}
steps:
- name: Setup
id: setup
run: echo "matrix=$(cat repos.json | jq -r -c '[.[] as {$repo, $paths} | $paths[] as $path | {$repo, "path": $path}]')" >> $GITHUB_OUTPUT
- name: Check
run: jq . <<< '${{ steps.setup.outputs.matrix }}'
monitor_repos:
runs-on: ubuntu-latest
needs: [define-matrix]
strategy:
fail-fast: false
matrix:
include:
- repo: stereolabs/zed-ros2-wrapper
path: zed_wrapper/launch/zed_camera.launch.py
include: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v2
- uses: poll-github-repo/action@v1
Expand Down

0 comments on commit 40430f3

Please sign in to comment.