Skip to content

Branch names fixing #42

Branch names fixing

Branch names fixing #42

Workflow file for this run

name: Sync Google Drive to S3
on:
push:
branches: feat/drive-to-s3
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # every day at 00:00 UTC
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client boto3
- name: Run Drive to S3 Script
env:
GDRIVE_FOLDER_ID: ${{ secrets.GDRIVE_FOLDER_ID }}
GOOGLE_CREDENTIALS_JSON: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_CREDENTIALS }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
S3_UPLOAD_PATH: ${{ secrets.S3_UPLOAD_PATH }}
run: |
python ./.github/workflows/drive_to_s3.py