Check BraTS Data Access requests #497
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
name: Check BraTS Data Access requests | |
on: | |
schedule: | |
- cron: '*/20 * * * *' # Run every 20 minutes | |
workflow_dispatch: | |
jobs: | |
check-responses: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Create Google Client credentials file | |
uses: jsdaniell/[email protected] | |
with: | |
name: 'service_account.json' | |
json: ${{ secrets.GOOGLE_CLIENT_JSON }} | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install gspread synapseclient pandas | |
- name: Validate responses | |
run: | | |
python3 validate_form_responses.py | |
env: | |
SYNAPSE_AUTH_TOKEN: ${{ secrets.SYNAPSE_AUTH_TOKEN }} |