Fetch, Upload S3, Mongo #27
This file contains hidden or 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: Fetch, Upload S3, Mongo | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
fetch-upload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Debug - List files in the repository | |
run: | | |
echo "Current working directory:" | |
pwd | |
echo "List of files:" | |
ls -al | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
pip install requests boto3 "pymongo[srv]" | |
- name: Run fetch upload S3 Mongo script | |
run: | | |
python fetch_upload_s3_mongo.py | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
MONGO_URI: ${{ secrets.MONGO_URI }} |