fix ref
All checks were successful
Reload Act Runner Stack to clear cache for workflows / diff (push) Successful in 47s
Reload Act Runner Stack to clear cache for workflows / reload-primary (push) Successful in 4s
Reload Act Runner Stack to clear cache for workflows / reload-secondary (push) Successful in 3s
Reload Act Runner Stack to clear cache for workflows / wait-for-secondary-death (push) Successful in 32s
Reload Act Runner Stack to clear cache for workflows / pull-cache-secondary (push) Successful in 8s

This commit is contained in:
Martin Dimitrov 2026-03-07 13:36:38 -08:00
parent f9ff69f786
commit de870952d5
2 changed files with 13 additions and 8 deletions

View File

@ -2,10 +2,16 @@ name: No-Op Cache Pull
on: on:
workflow_call: workflow_call:
inputs:
runs_on_label:
description: The runner label to execute this workflow on.
required: false
type: string
default: ubuntu-22.04
jobs: jobs:
noop: noop:
runs-on: ubuntu-latest runs-on: ${{ inputs.runs_on_label }}
steps: steps:
- name: Force actions cache pull - name: Force actions cache pull
run: echo "Successfully pulled actions cache!" run: echo "Successfully pulled actions cache!"

View File

@ -6,14 +6,14 @@ on:
jobs: jobs:
diff: diff:
uses: martin/chromart-gitea-actions/.gitea/workflows/diff-output.yaml@main uses: https://gitea.chromart.cc/martin/chromart-gitea-actions/.gitea/workflows/diff-output.yaml@main
with: with:
files: .gitea/** files: .gitea/**
reload-primary: reload-primary:
needs: diff needs: diff
if: ${{ needs.diff.outputs.is_changed == 'true' }} if: ${{ needs.diff.outputs.is_changed == 'true' }}
uses: martin/chromart-gitea-actions/.gitea/workflows/gitainer-deploy.yaml@main uses: https://gitea.chromart.cc/martin/chromart-gitea-actions/.gitea/workflows/gitainer-deploy.yaml@main
with: with:
stack_name: gitea_act_runner stack_name: gitea_act_runner
# the secondary runner executes the primary restart webhook # the secondary runner executes the primary restart webhook
@ -23,7 +23,7 @@ jobs:
needs: [diff, reload-primary] needs: [diff, reload-primary]
if: ${{ needs.diff.outputs.is_changed == 'true' }} if: ${{ needs.diff.outputs.is_changed == 'true' }}
# ensuring the primary actually survived and restarted successfully # ensuring the primary actually survived and restarted successfully
uses: martin/chromart-gitea-actions/.gitea/workflows/gitainer-deploy.yaml@main uses: https://gitea.chromart.cc/martin/chromart-gitea-actions/.gitea/workflows/gitainer-deploy.yaml@main
with: with:
stack_name: gitea_act_runner_secondary stack_name: gitea_act_runner_secondary
# the primary runner executes the secondary restart webhook # the primary runner executes the secondary restart webhook
@ -46,7 +46,6 @@ jobs:
needs: [diff, wait-for-secondary-death] needs: [diff, wait-for-secondary-death]
if: ${{ needs.diff.outputs.is_changed == 'true' }} if: ${{ needs.diff.outputs.is_changed == 'true' }}
# Because the old secondary is dead, Gitea leaves this job in the queue until the NEW secondary runner boots up. # Because the old secondary is dead, Gitea leaves this job in the queue until the NEW secondary runner boots up.
runs-on: runner-secondary uses: https://gitea.chromart.cc/martin/chromart-gitea-actions/.gitea/workflows/noop.yaml@main
steps: with:
- name: Force actions cache pull runs_on_label: runner-secondary
uses: https://gitea.chromart.cc/martin/chromart-gitea-actions/.gitea/workflows/noop.yaml@main