Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/sync-resume.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Sync Resume from Google Docs

on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
sync-resume:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib

- name: Run resume fetch script
env:
GOOGLE_DOC_ID: ${{ secrets.GOOGLE_DOC_ID }}
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
run: |
python scripts/main.py

- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
if ! git diff --cached --quiet; then
git commit -m "Update resume from Google Docs"
git push origin HEAD:main
else
echo "No changes to commit"
fi
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ __pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

.venv
.env
# Distribution / packaging
.Python
build/
Expand Down
25 changes: 25 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true,
"env": {},
"envFile": "${workspaceFolder}/.env"
},
{
"name": "Python: main.py",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/main.py",
"console": "integratedTerminal",
"justMyCode": true,
"env": {},
"envFile": "${workspaceFolder}/.env"
}
]
}
16 changes: 16 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.formatting.provider": "black",
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},
"terminal.integrated.env.osx": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
}
}
6 changes: 0 additions & 6 deletions Readme.txt

This file was deleted.

Loading