-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (41 loc) · 1.33 KB
/
sprint_data.yml
File metadata and controls
50 lines (41 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Runs during active sprints
# Collects sprint-level data for the Team Stats page
name: Sprint Data Collection
on:
schedule:
# Runs every Monday at midnight
# The script itself checks if a sprint is active
- cron: "0 0 * * 1"
workflow_dispatch:
jobs:
collect-sprint-data:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
# Checkout the Data_Updates branch (never push to main)
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: Data_Updates
# Set up Python environment
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
# Install project dependencies
- name: Install dependencies
run: pip install -r docs/requirements.txt
# Run data collection in sprint mode
- name: Run sprint data collection
env:
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
run: python -m Backend.dataCollection.collectData --mode sprint
# Commit and push updated JSOn file
- name: Commit and push changes
run: |
git config user.name "github-actions"
git config user.email "actions@github.com"
git add data/sprint_data.json
git commit -m "Update sprint data"
git push origin Data_Updates