Skip to content

Update webapp/latest_planner.json data #54

Update webapp/latest_planner.json data

Update webapp/latest_planner.json data #54

Workflow file for this run

name: Notify Slack on Analysis Update
on:
push:
branches:
- main
paths:
- 'webapp/latest_planner.json'
- 'webapp/latest_picklist.json'
jobs:
notify-planner:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check for planner file changes
id: check
uses: dorny/paths-filter@v2
with:
filters: |
planner:
- 'webapp/latest_planner.json'
- name: Send Planner notification
if: steps.check.outputs.planner == 'true'
run: |
curl -X POST ${{ secrets.SLACK_WEBHOOK_URL }} \
-H 'Content-type: application/json' \
-d '{"text": "Match planner updated — <https://frc4607.github.io/Scouting-Analysis/webapp/planner.html|Open Planner>"}'
notify-picklist:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check for picklist file changes
id: check
uses: dorny/paths-filter@v2
with:
filters: |
picklist:
- 'webapp/latest_picklist.json'
- name: Send Picklist notification
if: steps.check.outputs.picklist == 'true'
run: |
curl -X POST ${{ secrets.SLACK_WEBHOOK_URL }} \
-H 'Content-type: application/json' \
-d '{"text": "Picklist updated — <https://frc4607.github.io/Scouting-Analysis/webapp/picklist.html|Open Picklist>"}'