fix pull cache
Some checks failed
Reload Act Runner Stack to clear cache for workflows / diff (push) Successful in 1m36s
Reload Act Runner Stack to clear cache for workflows / reload-primary (push) Successful in 6s
Reload Act Runner Stack to clear cache for workflows / reload-secondary (push) Failing after 11m16s
Reload Act Runner Stack to clear cache for workflows / pull-cache-secondary (push) Has been cancelled

This commit is contained in:
Martin Dimitrov 2026-03-07 13:05:06 -08:00
parent b9b7537c3f
commit 1348b3c42d
2 changed files with 6 additions and 25 deletions

View File

@ -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'

View File

@ -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
runs-on: runner-secondary
steps:
- name: Force actions cache pull
uses: martin/chromart-gitea-actions/.gitea/workflows/diff-output.yaml@main
with:
runs_on_label: runner-secondary
files: 'nonexistent-file-to-force-cache-pull'