diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82de4815f..9593feb74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: # also runs with require-craft-fonts: true, so the build script enforces actual required faces. # Keep this pin identical to gate, freebsd.yml and release.yml. font-pin: - runs-on: ubuntu-latest + runs-on: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && 'artcraft-k8s-trusted' || 'ubuntu-latest' }} env: # Same craft-fonts commit as release.yml. CRAFT_FONTS_REF: 37827adc41fd165f9a9234ac40f94dbad353aa69 @@ -57,6 +57,7 @@ jobs: # Tracks @main so suite-wide CI fixes reach every app without a PR in each repository. uses: storytold/craft-common-actions/.github/workflows/gate.yml@main with: + os: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && '["artcraft-k8s-trusted"]' || '["ubuntu-24.04"]' }} # Same craft-fonts commit as release.yml. craft-fonts-ref: 37827adc41fd165f9a9234ac40f94dbad353aa69 require-craft-fonts: true diff --git a/.github/workflows/lockfile.yml b/.github/workflows/lockfile.yml index e630c9a8f..8348b5a64 100644 --- a/.github/workflows/lockfile.yml +++ b/.github/workflows/lockfile.yml @@ -18,7 +18,7 @@ env: jobs: lockfile: name: Lockfile is in sync - runs-on: ubuntu-24.04 + runs-on: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && 'artcraft-k8s-trusted' || 'ubuntu-24.04' }} timeout-minutes: 10 steps: - name: Harden runner