From 15a7a84d84bb97742263228c7cd043ab6deeae18 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Mon, 6 Jan 2025 14:15:16 +0800 Subject: [PATCH] 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. --- .github/workflows/licenses.yml | 2 +- .github/workflows/linting.yml | 2 +- .github/workflows/release-notes.yml | 2 +- .github/workflows/stale-pr-closer.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml index 1b8252cb174..e22f37c16e9 100644 --- a/.github/workflows/licenses.yml +++ b/.github/workflows/licenses.yml @@ -17,7 +17,7 @@ jobs: build: if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror' name: run - runs-on: ${{ (github.repository != 'discourse/discourse' && 'ubuntu-latest') || 'debian-12' }} + runs-on: ubuntu-latest container: discourse/discourse_test:slim timeout-minutes: 10 diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 06709f26c0a..623b4a7d97f 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -17,7 +17,7 @@ jobs: build: if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror' name: run - runs-on: ${{ (github.repository != 'discourse/discourse' && 'ubuntu-latest') || 'debian-12' }} + runs-on: ubuntu-latest container: discourse/discourse_test:slim timeout-minutes: 30 diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index eb0a35d45a8..c373723904f 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -20,7 +20,7 @@ permissions: jobs: build: name: run - runs-on: ${{ (github.repository != 'discourse/discourse' && 'ubuntu-latest') || 'debian-12' }} + runs-on: ubuntu-latest container: discourse/discourse_test:slim timeout-minutes: 10 env: diff --git a/.github/workflows/stale-pr-closer.yml b/.github/workflows/stale-pr-closer.yml index de7299191d9..e9a04ea6c09 100644 --- a/.github/workflows/stale-pr-closer.yml +++ b/.github/workflows/stale-pr-closer.yml @@ -9,7 +9,7 @@ permissions: jobs: stale: - runs-on: ${{ (github.repository != 'discourse/discourse' && 'ubuntu-latest') || 'debian-12' }} + runs-on: ubuntu-latest steps: - uses: actions/stale@v9 with: