From 1c0b93e988e92a8a9f124e650c2471686b0e6c72 Mon Sep 17 00:00:00 2001
From: Duong Cao <duong.cao@eastagile.com>
Date: Mon, 27 Jan 2025 11:54:55 +0700
Subject: [PATCH] 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