DEV: Use github hosted runners for simple workflows (#30576)

Our self hosted runners are limited in quantity so we should preserve
them for workflows that actually require the additional resources
instead of tying them up on workflows that do not benefit from the
additional resources.
This commit is contained in:
Alan Guo Xiang Tan 2025-01-06 14:15:16 +08:00 committed by GitHub
parent 9a87baaab4
commit 15a7a84d84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ jobs:
build: build:
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror' if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
name: run name: run
runs-on: ${{ (github.repository != 'discourse/discourse' && 'ubuntu-latest') || 'debian-12' }} runs-on: ubuntu-latest
container: discourse/discourse_test:slim container: discourse/discourse_test:slim
timeout-minutes: 10 timeout-minutes: 10

View File

@ -17,7 +17,7 @@ jobs:
build: build:
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror' if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
name: run name: run
runs-on: ${{ (github.repository != 'discourse/discourse' && 'ubuntu-latest') || 'debian-12' }} runs-on: ubuntu-latest
container: discourse/discourse_test:slim container: discourse/discourse_test:slim
timeout-minutes: 30 timeout-minutes: 30

View File

@ -20,7 +20,7 @@ permissions:
jobs: jobs:
build: build:
name: run name: run
runs-on: ${{ (github.repository != 'discourse/discourse' && 'ubuntu-latest') || 'debian-12' }} runs-on: ubuntu-latest
container: discourse/discourse_test:slim container: discourse/discourse_test:slim
timeout-minutes: 10 timeout-minutes: 10
env: env:

View File

@ -9,7 +9,7 @@ permissions:
jobs: jobs:
stale: stale:
runs-on: ${{ (github.repository != 'discourse/discourse' && 'ubuntu-latest') || 'debian-12' }} runs-on: ubuntu-latest
steps: steps:
- uses: actions/stale@v9 - uses: actions/stale@v9
with: with: