Skip to content

Commit 2e5fd7d

Browse files
committed
Workflow update
1 parent f24d999 commit 2e5fd7d

File tree

2 files changed

+144
-54
lines changed

2 files changed

+144
-54
lines changed
Lines changed: 28 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,35 @@
1-
name: Refresh GitHub Data
1+
name: Update Projects JSON
22

33
on:
4+
workflow_dispatch:
45
schedule:
5-
- cron: '0 0 * * *' # Runs daily at midnight UTC
6-
workflow_dispatch: # Allow manual triggers
7-
push:
8-
paths:
9-
- 'src/config.js' # Run when config is updated
6+
- cron: '0 0 * * *'
107

118
jobs:
12-
refresh-data:
9+
update-json:
1310
runs-on: ubuntu-latest
14-
11+
1512
steps:
16-
- name: Checkout repository
17-
uses: actions/checkout@v3
18-
with:
19-
token: ${{ secrets.GH_TOKEN }}
20-
21-
- name: Set up Node.js
22-
uses: actions/setup-node@v3
23-
with:
24-
node-version: '18'
25-
cache: 'npm'
26-
27-
- name: Install dependencies
28-
run: npm ci
29-
30-
- name: Fetch GitHub data
31-
run: npm run fetch-data
32-
env:
33-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
34-
35-
- name: Commit updated data
36-
run: |
37-
git config --local user.email "action@github.com"
38-
git config --local user.name "GitHub Action"
39-
git add public/projects.json
40-
git commit -m "Update projects data" || echo "No changes to commit"
41-
git push
42-
env:
43-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '18'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Update projects.json
25+
env:
26+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
27+
run: node scripts/fetch-github-data.js
28+
29+
- name: Commit and push changes if needed
30+
run: |
31+
git config --global user.name 'github-actions[bot]'
32+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
33+
git diff --exit-code || (git add public/projects.json && git commit -m 'Update projects.json with latest GitHub data' && git push)
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

public/projects.json

Lines changed: 116 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,51 @@
88
"project_website": "https://energy.inesctec.pt",
99
"top_repositories": [
1010
{
11-
"name": "flatland-blackbox",
12-
"url": "https://github.com/AI4REALNET/flatland-blackbox",
13-
"description": null,
11+
"name": "flatland-rl",
12+
"url": "https://github.com/AI4REALNET/flatland-rl",
13+
"description": "The Flatland Framework is a multi-purpose environment to tackle problems around resilient resource allocation under uncertainty. It is designed to be a flexible and method agnostic to solve a wide range of problems in the field of operations research and reinforcement learning.",
1414
"stars": 0,
1515
"forks": 0,
16-
"is_fork": false,
16+
"is_fork": true,
1717
"topics": [
1818
"flatland"
1919
],
20-
"language": "Python",
21-
"updated_at": "2025-05-07T14:58:01Z"
20+
"language": "Jupyter Notebook",
21+
"updated_at": "2025-05-07T14:57:52Z"
22+
},
23+
{
24+
"name": "flatland-book",
25+
"url": "https://github.com/AI4REALNET/flatland-book",
26+
"description": "This repository is an aggregation of all the documentation, exploratory research, baselines, un-explored ideas, future research directions for the Flatland-RL (https://github.com/flatland-association/flatland-rl) project.",
27+
"stars": 0,
28+
"forks": 0,
29+
"is_fork": true,
30+
"topics": [
31+
"flatland"
32+
],
33+
"language": "Jupyter Notebook",
34+
"updated_at": "2025-05-07T14:57:03Z"
35+
},
36+
{
37+
"name": "flatland-scenarios",
38+
"url": "https://github.com/AI4REALNET/flatland-scenarios",
39+
"description": "Flatland scenarios",
40+
"stars": 0,
41+
"forks": 0,
42+
"is_fork": true,
43+
"topics": [
44+
"flatland"
45+
],
46+
"language": "Jupyter Notebook",
47+
"updated_at": "2025-05-07T14:57:43Z"
2248
}
2349
],
2450
"total_stars": 0,
25-
"total_repositories": 1,
51+
"total_repositories": 3,
2652
"project_tags": [
2753
"flatland"
2854
],
29-
"last_updated": "2025-05-20T13:19:52.997Z"
55+
"last_updated": "2025-05-20T14:07:41.863Z"
3056
},
3157
{
3258
"project_name": "Grid2Op",
@@ -36,6 +62,32 @@
3662
"project_url": "https://example.com/ml-research",
3763
"project_website": "https://ai.inesctec.pt",
3864
"top_repositories": [
65+
{
66+
"name": "pypowsybl2grid",
67+
"url": "https://github.com/AI4REALNET/pypowsybl2grid",
68+
"description": "An integration between Grid2op and PyPowSybl",
69+
"stars": 0,
70+
"forks": 0,
71+
"is_fork": true,
72+
"topics": [
73+
"grid2op"
74+
],
75+
"language": null,
76+
"updated_at": "2025-05-20T10:00:33Z"
77+
},
78+
{
79+
"name": "grid2op",
80+
"url": "https://github.com/AI4REALNET/grid2op",
81+
"description": "Grid2Op a testbed platform to model sequential decision making in power systems.",
82+
"stars": 0,
83+
"forks": 0,
84+
"is_fork": true,
85+
"topics": [
86+
"grid2op"
87+
],
88+
"language": null,
89+
"updated_at": "2025-05-20T10:00:22Z"
90+
},
3991
{
4092
"name": "grid2op-scenario",
4193
"url": "https://github.com/AI4REALNET/grid2op-scenario",
@@ -51,23 +103,53 @@
51103
}
52104
],
53105
"total_stars": 0,
54-
"total_repositories": 1,
106+
"total_repositories": 3,
55107
"project_tags": [
56108
"grid2op"
57109
],
58-
"last_updated": "2025-05-20T13:19:53.793Z"
110+
"last_updated": "2025-05-20T14:07:49.439Z"
59111
},
60112
{
61113
"project_name": "BlueSky",
62114
"project_topic": "bluesky",
63115
"project_area": "Internet of Things",
64116
"project_description": "Advanced sensor networks for IoT applications and smart environments.",
65117
"project_url": "https://example.com/iot-sensors",
66-
"top_repositories": [],
118+
"project_website": "https://ai.inesctec.pt",
119+
"top_repositories": [
120+
{
121+
"name": "bluesky-gym",
122+
"url": "https://github.com/AI4REALNET/bluesky-gym",
123+
"description": "A gymnasium style environment for standardized Reinforcement Learning research in Air Traffic Management. Built on the BlueSky Air Traffic Simulator ",
124+
"stars": 0,
125+
"forks": 0,
126+
"is_fork": true,
127+
"topics": [
128+
"bluesky"
129+
],
130+
"language": "Python",
131+
"updated_at": "2025-05-20T10:00:51Z"
132+
},
133+
{
134+
"name": "bluesky",
135+
"url": "https://github.com/AI4REALNET/bluesky",
136+
"description": "The open source air traffic simulator",
137+
"stars": 0,
138+
"forks": 0,
139+
"is_fork": true,
140+
"topics": [
141+
"bluesky"
142+
],
143+
"language": "Python",
144+
"updated_at": "2025-05-20T10:01:01Z"
145+
}
146+
],
67147
"total_stars": 0,
68-
"total_repositories": 0,
69-
"project_tags": [],
70-
"last_updated": "2025-05-20T13:19:54.072Z"
148+
"total_repositories": 2,
149+
"project_tags": [
150+
"bluesky"
151+
],
152+
"last_updated": "2025-05-20T14:07:56.812Z"
71153
},
72154
{
73155
"project_name": "Interactive AI",
@@ -76,10 +158,26 @@
76158
"project_description": "Research on autonomous robotic systems for industry and healthcare.",
77159
"project_url": "https://example.com/robotics",
78160
"project_website": "https://robotics.inesctec.pt",
79-
"top_repositories": [],
161+
"top_repositories": [
162+
{
163+
"name": "InteractiveAI",
164+
"url": "https://github.com/AI4REALNET/InteractiveAI",
165+
"description": "Interactive AI Assistant Platform for Real-time Operations",
166+
"stars": 0,
167+
"forks": 2,
168+
"is_fork": true,
169+
"topics": [
170+
"interactive-ai"
171+
],
172+
"language": "Python",
173+
"updated_at": "2025-05-20T10:01:13Z"
174+
}
175+
],
80176
"total_stars": 0,
81-
"total_repositories": 0,
82-
"project_tags": [],
83-
"last_updated": "2025-05-20T13:19:54.355Z"
177+
"total_repositories": 1,
178+
"project_tags": [
179+
"interactive-ai"
180+
],
181+
"last_updated": "2025-05-20T14:08:04.191Z"
84182
}
85183
]

0 commit comments

Comments
 (0)