Update webapp/latest_planner.json data #54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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>"}' |