generate iqss stat data #1140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/build.yml | |
name: generate iqss stat data | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
env: | |
PIPENV_VENV_IN_PROJECT: enabled | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install pipenv | |
run: | | |
python -m pip install --upgrade pipenv wheel | |
- name: Install dependencies | |
run: | | |
pipenv install | |
- name: Add ssh deploy key | |
run: | | |
mkdir ~/.ssh | |
git config --global user.email "[email protected]" | |
git config --global user.name "IQSS metrics agent" | |
echo "${{ secrets.IQSS_DASHBOARD_SSH_DEPLOY_KEY }}" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
ssh-keyscan -t rsa github.com | |
- run: make clean build run deploy | |
env: | |
SHEET_URL_BUSINESS_OPERATIONS: ${{ secrets.SHEET_URL_BUSINESS_OPERATIONS }} | |
SHEET_URL_CSS: ${{ secrets.SHEET_URL_CSS }} | |
SHEET_URL_PSR: ${{ secrets.SHEET_URL_PSR }} | |
SHEET_URL_MAIN_AND_RESEARCH_COMPUTING: ${{ secrets.SHEET_URL_MAIN_AND_RESEARCH_COMPUTING }} | |
SHEET_URL_DATAVERSE: ${{ secrets.SHEET_URL_DATAVERSE }} | |
SHEET_URL_CGA_LICENSE_REQUEST: ${{ secrets.SHEET_URL_CGA_LICENSE_REQUEST }} | |
SHEET_URL_CGA_TRAINING_REGISTRATION: ${{ secrets.SHEET_URL_CGA_TRAINING_REGISTRATION }} | |
SHEET_URL_CGA_EVENT_REGISTRATION: ${{ secrets.SHEET_URL_CGA_EVENT_REGISTRATION }} | |
SHEET_URL_CGA_GIS_APPLICATION: ${{ secrets.SHEET_URL_CGA_GIS_APPLICATION }} | |
SHEET_URL_CGA_CONTACT: ${{ secrets.SHEET_URL_CGA_CONTACT }} | |
SHEET_URL_CGA_WORKSHOP_EVALUATIONS: ${{ secrets.SHEET_URL_CGA_WORKSHOP_EVALUATIONS }} | |
RT_USER: ${{ secrets.RT_USER }} | |
RT_PASSWORD: ${{ secrets.RT_PASSWORD }} |