diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fef1ba6a9251279a25dce11a5726609817cbc998..48f0b8174cbd34b0c8470eab118f2b13b7ec00e6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,4 +36,11 @@ job5_prod_update_activitiesPage_on_blog: script: - php gitlab-ci/generateActivitiesCard.php when: manual +job5_prod_update_IAIRessourcesPage_on_blog: + stage: deploy + tags: + - prod + script: + - php gitlab-ci/generateIAIlinks.php + when: manual \ No newline at end of file diff --git a/cmdLog/generateIAIlinks.php b/gitlab-ci/generateIAIlinks.php similarity index 95% rename from cmdLog/generateIAIlinks.php rename to gitlab-ci/generateIAIlinks.php index 4e7a3adbe031c824cc08106148e6a93676788913..f8c1cd3a024696eaa4b6abbcf782c9cd14b2d75d 100644 --- a/cmdLog/generateIAIlinks.php +++ b/gitlab-ci/generateIAIlinks.php @@ -17,7 +17,7 @@ $delimiter = "<!--iairessources-->"; $dataArray=array(); $html=""; $htmlFirst=$html; -if (($h = fopen("https://docs.google.com/spreadsheets/d/1xlI91FqGZ1XLltIcPe5_3IvASOVbSWKC5sdlGxrfWVk", "r")) !== FALSE){ +if (($h = fopen("https://docs.google.com/spreadsheets/d/1xlI91FqGZ1XLltIcPe5_3IvASOVbSWKC5sdlGxrfWVk/gviz/tq?tqx=out:csv", "r")) !== FALSE){ print "File open! \n"; while (($data = fgetcsv($h, 1000, ",")) !== FALSE){ if(count($data)!=0){ @@ -68,13 +68,13 @@ if($dataArray && $dataArraySize!=0){ } $html.="<li><p><a href=".$tmp_url.">".$tmp_title."</a>"; if($tmp_author!=''){ - $html=.", ".$tmp_author; + $html.=", ".$tmp_author; } if($tmp_editor!=''){ - $html=.", ".$tmp_editor; + $html.=", ".$tmp_editor; } if($tmp_date!=''){ - $html=.", ".$tmp_date; + $html.=", ".$tmp_date; } $html.="</li>"; }