From 9cde249c82d8f1d22cb822a030e0ef747cd12cb1 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 18 Mar 2021 12:33:44 +0530 Subject: github: run all workflows on Java 11 Signed-off-by: Harsh Shandilya --- .github/workflows/deploy_github_releases.yml | 4 ++++ .github/workflows/deploy_library_releases.yml | 4 ++++ .github/workflows/deploy_snapshot.yml | 4 ++++ .github/workflows/draft_new_release.yml | 4 ++++ .github/workflows/pull_request.yml | 5 +++++ .github/workflows/weekly_crowdin_sync.yml | 4 ++++ 6 files changed, 25 insertions(+) (limited to '.github') diff --git a/.github/workflows/deploy_github_releases.yml b/.github/workflows/deploy_github_releases.yml index 449a8a08..b449c679 100644 --- a/.github/workflows/deploy_github_releases.yml +++ b/.github/workflows/deploy_github_releases.yml @@ -9,6 +9,10 @@ jobs: name: Build release binaries runs-on: ubuntu-latest steps: + - uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 + with: + java-version: '11' + - name: Checkout repository uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f diff --git a/.github/workflows/deploy_library_releases.yml b/.github/workflows/deploy_library_releases.yml index d769af6d..f990adab 100644 --- a/.github/workflows/deploy_library_releases.yml +++ b/.github/workflows/deploy_library_releases.yml @@ -9,6 +9,10 @@ jobs: publish-release: runs-on: ubuntu-latest steps: + - uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 + with: + java-version: '11' + - name: Checkout repository uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f diff --git a/.github/workflows/deploy_snapshot.yml b/.github/workflows/deploy_snapshot.yml index e83e057b..1c7cdb67 100644 --- a/.github/workflows/deploy_snapshot.yml +++ b/.github/workflows/deploy_snapshot.yml @@ -9,6 +9,10 @@ jobs: runs-on: ubuntu-latest if: "!contains(github.event.head_commit.message, '[ci skip]')" steps: + - uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 + with: + java-version: '11' + - name: Checkout repository uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f diff --git a/.github/workflows/draft_new_release.yml b/.github/workflows/draft_new_release.yml index ecc0f087..03993449 100644 --- a/.github/workflows/draft_new_release.yml +++ b/.github/workflows/draft_new_release.yml @@ -9,6 +9,10 @@ jobs: name: "Draft a new release" runs-on: ubuntu-latest steps: + - uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 + with: + java-version: '11' + - name: Extract version from milestone run: | VERSION="${{ github.event.milestone.title }}" diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index fa69d324..2d99c93b 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -28,6 +28,11 @@ jobs: console.log(shouldRun) return shouldRun + - uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 + if: ${{ steps.service-changed.outputs.result == 'true' }} + with: + java-version: '11' + - name: Checkout repository if: ${{ steps.service-changed.outputs.result == 'true' }} uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f diff --git a/.github/workflows/weekly_crowdin_sync.yml b/.github/workflows/weekly_crowdin_sync.yml index ca8e4c2e..5a323fc6 100644 --- a/.github/workflows/weekly_crowdin_sync.yml +++ b/.github/workflows/weekly_crowdin_sync.yml @@ -10,6 +10,10 @@ jobs: - name: Checkout uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f + - uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 + with: + java-version: '11' + - name: Download new translations from Crowdin run: ./gradlew crowdin -- cgit v1.2.3