Check Google Drive Access #30
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 Google Drive Access" | |
on: | |
workflow_dispatch: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/caciviclab/disclosure-backend-static/${{github.ref_name}}:latest | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.github_token }} | |
env: | |
REPO_OWNER: ${{ github.repository_owner}} | |
REPO_BRANCH: ${{ github.ref_name }} | |
SERVICE_ACCOUNT_KEY_JSON: ${{ secrets.SERVICE_ACCOUNT_KEY_JSON }} | |
GDRIVE_FOLDER: ${{ vars.GDRIVE_FOLDER }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test pull from gdrive | |
run: python test_pull_from_gdrive.py | |
- name: Archive pulled files | |
uses: actions/upload-artifact@v3 | |
with: | |
name: redacted-netfile-files | |
path: .local/downloads | |