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
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:
parent
f9ff69f786
commit
de870952d5
@ -2,10 +2,16 @@ name: No-Op Cache Pull
|
||||
|
||||
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:
|
||||
noop:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ inputs.runs_on_label }}
|
||||
steps:
|
||||
- name: Force actions cache pull
|
||||
run: echo "Successfully pulled actions cache!"
|
||||
|
||||
@ -6,14 +6,14 @@ on:
|
||||
|
||||
jobs:
|
||||
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:
|
||||
files: .gitea/**
|
||||
|
||||
reload-primary:
|
||||
needs: diff
|
||||
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:
|
||||
stack_name: gitea_act_runner
|
||||
# the secondary runner executes the primary restart webhook
|
||||
@ -23,7 +23,7 @@ jobs:
|
||||
needs: [diff, reload-primary]
|
||||
if: ${{ needs.diff.outputs.is_changed == 'true' }}
|
||||
# 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:
|
||||
stack_name: gitea_act_runner_secondary
|
||||
# the primary runner executes the secondary restart webhook
|
||||
@ -46,7 +46,6 @@ jobs:
|
||||
needs: [diff, wait-for-secondary-death]
|
||||
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.
|
||||
runs-on: runner-secondary
|
||||
steps:
|
||||
- name: Force actions cache pull
|
||||
uses: https://gitea.chromart.cc/martin/chromart-gitea-actions/.gitea/workflows/noop.yaml@main
|
||||
with:
|
||||
runs_on_label: runner-secondary
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user