Skip to content

Commit

Permalink
Pin Linux jobs to ubuntu-22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
Gedochao committed Dec 11, 2024
1 parent fd4a42f commit b19fce5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
OS: ["ubuntu-latest", "macos-latest", "windows-latest"]
OS: ["ubuntu-22.04", "macos-latest", "windows-latest"]
steps:
- name: Set Git to preserve original line endings
run: |
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Show version
run: ./gradlew :printVersion
- name: Publish snapshot
if: ${{ github.event_name == 'push' && matrix.OS == 'ubuntu-latest' }}
if: ${{ github.event_name == 'push' && matrix.OS == 'ubuntu-22.04' }}
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
publish:
name: Release build and publish
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
update_release_draft:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: release-drafter/release-drafter@v5
env:
Expand Down

0 comments on commit b19fce5

Please sign in to comment.