diff --git a/.github/workflows/cleanup-actions-artifacts.yml b/.github/workflows/cleanup-actions-artifacts.yml index b4d6c45..171bad3 100644 --- a/.github/workflows/cleanup-actions-artifacts.yml +++ b/.github/workflows/cleanup-actions-artifacts.yml @@ -20,13 +20,13 @@ permissions: jobs: cleanup: name: Delete stale Actions artifacts - runs-on: ubuntu-latest + runs-on: [self-hosted, evoo-ci, Linux] timeout-minutes: 30 steps: - name: Remove old artifacts env: GH_TOKEN: ${{ github.token }} - DRY_RUN: ${{ inputs.dry_run }} + DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || 'false' }} REPOSITORY: ${{ github.repository }} run: | python3 <<'PY'