diff --git a/.github/workflows/coscine.yml b/.github/workflows/coscine.yml index eaabc6f4cbef159597588cc0e6a66963421a4167..4194fb6f27375c5a0760e68ace4e81fa3dbb38e6 100644 --- a/.github/workflows/coscine.yml +++ b/.github/workflows/coscine.yml @@ -4,6 +4,10 @@ name: Deploy Coscine Static Site to GitHub Pages on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + schedule: + # * is a special character in YAML so you have to quote this string + # Run every day at 8 am UTC + - cron: '0 8 * * *' # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: @@ -26,11 +30,9 @@ jobs: # Build job build: runs-on: ubuntu-latest - # Put your Project and Resource names here. Also make sure you have set - # your Coscine API Token as a repository variable in the repository settings! env: - PROJECT_NAME: "Solaris" - RESOURCE_NAME: "Chest X-Ray CNN" + PROJECT_NAME: ${{vars.COSCINE_PROJECT_NAME}} + RESOURCE_NAME: ${{vars.COSCINE_RESOURCE_NAME}} COSCINE_API_TOKEN: ${{vars.COSCINE_API_TOKEN}} steps: - run: python -V