Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
npanuhin committed Jan 21, 2024
1 parent c6ab6a7 commit b03255a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/daily_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ jobs:
update-images:
name: Update images
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}

- name: Install Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
contents: read

jobs:
linter:
lint:
name: Lint code
runs-on: ubuntu-latest

Expand All @@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip
Expand Down
3 changes: 3 additions & 0 deletions src/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ website/*

# Configuration files with tokens
configs/*token.json

# Temporary files
_temp/
4 changes: 2 additions & 2 deletions src/scripts/bulk_cloudflare_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from cloudflare import CloudflareR2 # noqa: E402


def bulk_upload(root_path):
def main(root_path):
storage = CloudflareR2()

for root, dirs, files in os.walk(root_path):
Expand All @@ -16,4 +16,4 @@ def bulk_upload(root_path):


if __name__ == '__main__':
bulk_upload('../tmp/npanuhin-bing-wallpaper-archive')
main('../tmp/npanuhin-bing-wallpaper-archive')

0 comments on commit b03255a

Please sign in to comment.