From 364d46b658a626e485ad6acce7779d2cafb6436e Mon Sep 17 00:00:00 2001 From: Peter Steiner Date: Mon, 1 Jul 2024 19:09:23 +0200 Subject: [PATCH] Use latest actions to fix CI jobs --- .github/workflows/black.yml | 2 +- .github/workflows/python-app.yml | 4 ++-- gcexport.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index dd0f055..2941de0 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -6,7 +6,7 @@ jobs: black: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: psf/black@stable with: options: "-S -l 132" diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 55fa003..8e747b6 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -20,9 +20,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.version }} - name: Install dependencies diff --git a/gcexport.py b/gcexport.py index ea991a5..483f240 100644 --- a/gcexport.py +++ b/gcexport.py @@ -791,6 +791,7 @@ def export_data_file(activity_id, activity_details, args, file_time, append_desc file_mode = 'wb' elif args.format == 'json': data_filename = os.path.join(directory, f'{prefix}activity_{activity_id}{append_desc}.json') + download_url = None file_mode = 'w' else: raise ValueError('Unrecognized format.')