Skip to content

Commit

Permalink
chore: add cred json and log file (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriacheng15 authored Jan 26, 2025
1 parent 1b7c845 commit a6a4067
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/scheduled_extraction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,29 @@ jobs:
python -m pip install --upgrade pip
make init
- name: Create credentials.json
run: |
echo '${{ secrets.CREDENTIALS }}' > credentials.json
- name: Verify credentials
run: |
if [ -f credentials.json ]; then
echo "Credentials file exists."
else
echo "Credentials file not found."
exit 1
fi
- name: Run Python script
run: make run
run: make run > log.txt
env:
SHEET_ID: ${{ secrets.SHEET_ID }}

- name: Clean up credentials.json
run: rm -f credentials.json

- name: Upload log file
uses: actions/upload-artifact@v4
with:
name: logger
path: log.txt

0 comments on commit a6a4067

Please sign in to comment.