name: Reload Act Runner Stack to clear cache for workflows on: push: branches: [main] jobs: diff: uses: 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 with: stack_name: gitea_act_runner # the secondary runner executes the primary restart webhook runs_on_label: runner-secondary reload-secondary: needs: reload-primary # ensuring the primary actually survived and restarted successfully uses: 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 runs_on_label: runner-primary