Skip to content

Commit

Permalink
Merge pull request #75 from cartabinaria/check-repos
Browse files Browse the repository at this point in the history
Check repos
  • Loading branch information
samuelemusiani authored Nov 6, 2024
2 parents 6f7fb00 + d479444 commit 636e732
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 18 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/check_repos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check repo existance

on:
schedule:
- cron: '0 0 * * 1'

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Check all teachings
run: |
bash -c '
OK=true
echo "Checking repos..."
for r in $(jq -r '.[].url' < ./teachings.json); do
if [ $(curl -s -o /dev/null -w "%{http_code}" https://github.com/$GITHUB_REPOSITORY_OWNER/$r) -eq 404 ]; then
echo "::error::$r NOT FOUND";
OK=false
fi
done
if ! $OK; then
echo "::error::Some repos do not exist on github but are present on teachings.json"
exit 1
fi
'
18 changes: 12 additions & 6 deletions degrees.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
"mandatory": true
},
{
"name": "ing-algebra-e-geometria-t",
"name": "ing-geometria-e-algebra-t",
"year": 1,
"mandatory": true
},
Expand Down Expand Up @@ -392,6 +392,11 @@
"year": 3,
"mandatory": true
},
{
"name": "ing-affidabilita-e-controllo-della-qualita-t",
"year": 3,
"mandatory": false
},
{
"name": "ing-laboratorio-sicurezza-informatica-t",
"year": 3,
Expand All @@ -403,7 +408,12 @@
"mandatory": false
},
{
"name": "ing-diritto-t",
"name": "ing-diritto-dell-informatica-t",
"year": 3,
"mandatory": false
},
{
"name": "ing-progettazione-di-applicazioni-web-t",
"year": 3,
"mandatory": false
}
Expand Down Expand Up @@ -469,10 +479,6 @@
"name": "decision-making-with-constraint-programming",
"mandatory": false
},
{
"name": "ingegneria-del-software-orientata-ai-servizi",
"mandatory": false
},
{
"name": "simulazione-di-sistemi",
"mandatory": false
Expand Down
34 changes: 22 additions & 12 deletions teachings.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
},
{
"name": "Geometria e algebra T",
"url": "ing-algebra-e-geometria-t",
"url": "ing-geometria-e-algebra-t",
"chat": "chat.whatsapp.com/HB1Gp5ZlMzR9xIhgUwEkrA",
"website": "434697",
"professors": [
Expand Down Expand Up @@ -167,16 +167,6 @@
"zeynep.kiziltan"
]
},
{
"name": "Ingegneria del software orientata ai servizi",
"url": "ingegneria-del-software-orientata-ai-servizi",
"chat": "t.me/ISOS_unibo",
"website": "479037",
"professors": [
"davide.rossi",
"ivan.lanese"
]
},
{
"name": "Simulazione di sistemi",
"url": "simulazione-di-sistemi",
Expand Down Expand Up @@ -575,6 +565,26 @@
"massimo.lanzoni"
]
},
{
"degree": "ingegneria",
"name": "Affidabilità e controllo della qualità T",
"url": "ing-affidabilita-e-controllo-della-qualita-t",
"chat": "chat.whatsapp.com/HB1Gp5ZlMzR9xIhgUwEkrA",
"website": "434717",
"professors": [
"roberto.tinarelli3"
]
},
{
"degree": "ingegneria",
"name": "Progettazione di applicazioni web T",
"url": "ing-progettazione-di-applicazioni-web-t",
"chat": "chat.whatsapp.com/HB1Gp5ZlMzR9xIhgUwEkrA",
"website": "461145",
"professors": [
"ilaria.bartolini"
]
},
{
"degree": "ingegneria",
"name": "Amministazione di sistemi",
Expand Down Expand Up @@ -897,7 +907,7 @@
},
{
"name": "Diritto dell'Informatica T",
"url": "ing-diritto-t",
"url": "ing-diritto-dell-informatica-t",
"chat": "t.me/joinchat/BMT7WBYtBSdduMJdhjs3Ew",
"website": "434715",
"professors": [
Expand Down

0 comments on commit 636e732

Please sign in to comment.