diff --git a/.github/workflows/check_repos.yaml b/.github/workflows/check_repos.yaml new file mode 100644 index 0000000..617092e --- /dev/null +++ b/.github/workflows/check_repos.yaml @@ -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 + ' diff --git a/degrees.json b/degrees.json index dd99eb3..7179d68 100644 --- a/degrees.json +++ b/degrees.json @@ -308,7 +308,7 @@ "mandatory": true }, { - "name": "ing-algebra-e-geometria-t", + "name": "ing-geometria-e-algebra-t", "year": 1, "mandatory": true }, @@ -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, @@ -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 } @@ -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 diff --git a/teachings.json b/teachings.json index d8f6a79..0d6875d 100644 --- a/teachings.json +++ b/teachings.json @@ -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": [ @@ -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", @@ -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", @@ -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": [