diff --git a/.gitea/workflows/noop.yaml b/.gitea/workflows/noop.yaml index 475fbfe..fe2c2a5 100644 --- a/.gitea/workflows/noop.yaml +++ b/.gitea/workflows/noop.yaml @@ -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!" diff --git a/.gitea/workflows/reload-act-runner.yaml b/.gitea/workflows/reload-act-runner.yaml index 39f48f3..8b2f7cc 100644 --- a/.gitea/workflows/reload-act-runner.yaml +++ b/.gitea/workflows/reload-act-runner.yaml @@ -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 + uses: https://gitea.chromart.cc/martin/chromart-gitea-actions/.gitea/workflows/noop.yaml@main + with: + runs_on_label: runner-secondary