From 1348b3c42d9160f494cb47c8fd3db38a6e9c5922 Mon Sep 17 00:00:00 2001 From: Martin Dimitrov Date: Sat, 7 Mar 2026 13:05:06 -0800 Subject: [PATCH] fix pull cache --- .gitea/workflows/pull-cache.yaml | 21 --------------------- .gitea/workflows/reload-act-runner.yaml | 10 ++++++---- 2 files changed, 6 insertions(+), 25 deletions(-) delete mode 100644 .gitea/workflows/pull-cache.yaml diff --git a/.gitea/workflows/pull-cache.yaml b/.gitea/workflows/pull-cache.yaml deleted file mode 100644 index 82d5208..0000000 --- a/.gitea/workflows/pull-cache.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Pull Actions Cache -on: - workflow_call: - inputs: - runs_on_label: - description: The runner label to execute this workflow on. - required: false - type: string - default: ubuntu-22.04 - -jobs: - # This job does literally nothing but force the designated runner - # to clone/pull the chromart-gitea-actions repository into its worker cache. - # This is needed after a runner container is recreated or its cache is wiped. - pull-cache: - runs-on: ${{ inputs.runs_on_label }} - steps: - - name: Force actions clone - uses: martin/chromart-gitea-actions/.gitea/workflows/diff-output.yaml@main - with: - files: 'nonexistent-file-to-force-cache-pull' diff --git a/.gitea/workflows/reload-act-runner.yaml b/.gitea/workflows/reload-act-runner.yaml index b86fce5..d6074ee 100644 --- a/.gitea/workflows/reload-act-runner.yaml +++ b/.gitea/workflows/reload-act-runner.yaml @@ -32,7 +32,9 @@ jobs: pull-cache-secondary: needs: [diff, reload-secondary] if: ${{ needs.diff.outputs.is_changed == 'true' }} - # Use the secondary runner (which is now done restarting) to prove it's alive and pull cache - uses: martin/chromart-gitea-actions/.gitea/workflows/pull-cache.yaml@main - with: - runs_on_label: runner-secondary + runs-on: runner-secondary + steps: + - name: Force actions cache pull + uses: martin/chromart-gitea-actions/.gitea/workflows/diff-output.yaml@main + with: + files: 'nonexistent-file-to-force-cache-pull'