From b7d465c9d90a306a53df29c5cfed2892ff3b03b0 Mon Sep 17 00:00:00 2001 From: Duong Cao Date: Mon, 27 Jan 2025 11:54:27 +0700 Subject: [PATCH 1/2] Ensure pip up-to-date --- .github/workflows/archive.yml | 7 ++++++- .github/workflows/ci.yml | 4 +++- .github/workflows/cron.yml | 7 ++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/archive.yml b/.github/workflows/archive.yml index 90becd9..5a7f036 100644 --- a/.github/workflows/archive.yml +++ b/.github/workflows/archive.yml @@ -4,6 +4,9 @@ on: schedule: - cron: "7 11 * * *" workflow_dispatch: + push: + branches: + - fix-failed-cron-job env: CI: true @@ -26,7 +29,9 @@ jobs: python-version: ${{ env.PYTHON_VERSION }} - name: Install Pipenv - run: pip install --user pipenv + run: | + python -m pip install --upgrade pip + pip install pipenv - name: Cache Python dependencies uses: actions/cache@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ba2190..9115e4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,9 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install Pipenv - run: pip install --user pipenv + run: | + python -m pip install --upgrade pip + pip install pipenv - name: Cache Python dependencies uses: actions/cache@v4 diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index a2d1c58..7e7ffb5 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -4,6 +4,9 @@ on: schedule: - cron: "1 6 * * *" workflow_dispatch: + push: + branches: + - fix-failed-cron-job env: CI: true @@ -32,7 +35,9 @@ jobs: python-version: ${{ env.PYTHON_VERSION }} - name: Install Pipenv - run: pip install --user pipenv + run: | + python -m pip install --upgrade pip + pip install pipenv - name: Cache Python dependencies uses: actions/cache@v4 From 6ca78bdf8aa2945330ef401e395577c556749d19 Mon Sep 17 00:00:00 2001 From: Duong Cao Date: Mon, 27 Jan 2025 15:16:33 +0700 Subject: [PATCH 2/2] Remove target test branch --- .github/workflows/archive.yml | 3 --- .github/workflows/cron.yml | 3 --- 2 files changed, 6 deletions(-) diff --git a/.github/workflows/archive.yml b/.github/workflows/archive.yml index 5a7f036..f26e096 100644 --- a/.github/workflows/archive.yml +++ b/.github/workflows/archive.yml @@ -4,9 +4,6 @@ on: schedule: - cron: "7 11 * * *" workflow_dispatch: - push: - branches: - - fix-failed-cron-job env: CI: true diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 7e7ffb5..89d4dda 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -4,9 +4,6 @@ on: schedule: - cron: "1 6 * * *" workflow_dispatch: - push: - branches: - - fix-failed-cron-job env: CI: true