From 9bd1a7ca46920ab5e7e82a6159bbadff75ea4071 Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Fri, 12 Jan 2024 14:52:55 -0500 Subject: [PATCH] fix: add java version to pypi release script --- .../workflows/publish-airflow-plugin-pypi-release.yml | 11 ++++++++--- .github/workflows/publish-pypi-release.yml | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-airflow-plugin-pypi-release.yml b/.github/workflows/publish-airflow-plugin-pypi-release.yml index 04b4e0b3684424..8c439054b2981b 100644 --- a/.github/workflows/publish-airflow-plugin-pypi-release.yml +++ b/.github/workflows/publish-airflow-plugin-pypi-release.yml @@ -26,10 +26,15 @@ jobs: needs: setup steps: - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: - python-version: '3.10' + distribution: "zulu" + java-version: 17 + - uses: actions/setup-python@v4 + with: + python-version: "3.10" + cache: "pip" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/publish-pypi-release.yml b/.github/workflows/publish-pypi-release.yml index 169ef2da7fcf95..5855be9a946b2e 100644 --- a/.github/workflows/publish-pypi-release.yml +++ b/.github/workflows/publish-pypi-release.yml @@ -26,10 +26,15 @@ jobs: needs: setup steps: - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: - python-version: '3.10' + distribution: "zulu" + java-version: 17 + - uses: actions/setup-python@v4 + with: + python-version: "3.10" + cache: "pip" - name: Install dependencies run: | python -m pip install --upgrade pip