Skip to content

Commit ae353ec

Browse files
authored
tools: use ubuntu-latest for public lint-js-and-md jobs
Use ubuntu-latest in public repositories to reduce runtime and provide more headroom when the ESLint cache cannot be restored. Keep ubuntu-slim in private repositories to avoid increasing runner costs. Assisted-by: Codex Signed-off-by: inoway46 <inoueyuya416@gmail.com> PR-URL: #66409 Refs: #64972 Reviewed-By: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 5f602d5 commit ae353ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/linters.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
fi
9999
lint-js-and-md:
100100
if: github.event.pull_request.draft == false
101-
runs-on: ubuntu-slim
101+
runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }}
102102
steps:
103103
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
104104
with:

0 commit comments

Comments
 (0)