From 1f6b32e3e030862809119b6785f5c850e8c29856 Mon Sep 17 00:00:00 2001 From: Mikio Stewart <44074221+mikstew@users.noreply.github.com> Date: Tue, 20 Aug 2024 09:00:17 -0700 Subject: [PATCH 1/2] Delete .github/workflows/auto_update_price_and_context_window.yml --- .../auto_update_price_and_context_window.yml | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 .github/workflows/auto_update_price_and_context_window.yml diff --git a/.github/workflows/auto_update_price_and_context_window.yml b/.github/workflows/auto_update_price_and_context_window.yml deleted file mode 100644 index e7d65242c..000000000 --- a/.github/workflows/auto_update_price_and_context_window.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Updates model_prices_and_context_window.json and Create Pull Request - -on: - schedule: - - cron: "0 0 * * 0" # Run every Sundays at midnight - #- cron: "0 0 * * *" # Run daily at midnight - -jobs: - auto_update_price_and_context_window: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Install Dependencies - run: | - pip install aiohttp - - name: Update JSON Data - run: | - python ".github/workflows/auto_update_price_and_context_window_file.py" - - name: Create Pull Request - run: | - git add model_prices_and_context_window.json - git commit -m "Update model_prices_and_context_window.json file: $(date +'%Y-%m-%d')" - gh pr create --title "Update model_prices_and_context_window.json file" \ - --body "Automated update for model_prices_and_context_window.json" \ - --head auto-update-price-and-context-window-$(date +'%Y-%m-%d') \ - --base main - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file From 1724edeed75cafeced109587f391bbded3ae9fe0 Mon Sep 17 00:00:00 2001 From: Mikio Stewart Date: Tue, 20 Aug 2024 11:55:28 -0700 Subject: [PATCH 2/2] fetch-depth=0 --- .github/workflows/ghcr_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ghcr_deploy.yml b/.github/workflows/ghcr_deploy.yml index 8c8060a92..51c88f6f6 100644 --- a/.github/workflows/ghcr_deploy.yml +++ b/.github/workflows/ghcr_deploy.yml @@ -201,7 +201,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - ref: ${{ github.event.inputs.commit_hash }} + fetch-depth: 0 - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1