From 203171df2063fa7075a7a096792f8ef5d8730f1a Mon Sep 17 00:00:00 2001 From: Stepan Skryabin <20664125+zurg3@users.noreply.github.com> Date: Wed, 8 May 2024 19:45:31 +0300 Subject: [PATCH] Edited some files --- .github/workflows/java.yml | 4 +++- .github/workflows/python.yml | 10 ++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 81d3a5b..302c949 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -1,4 +1,6 @@ name: Java +env: + JAVA_VERSION: "20" on: push: @@ -42,7 +44,7 @@ jobs: uses: actions/setup-java@v4 with: distribution: "zulu" - java-version: "20" + java-version: ${{ env.JAVA_VERSION }} architecture: "x64" - name: Build diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index cc8e0ee..90ab71c 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -1,4 +1,6 @@ name: Python +env: + PYTHON_VERSION: "3.10" on: push: @@ -13,10 +15,10 @@ jobs: - name: Git Clone uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python ${{ env.PYTHON_VERSION }} uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ env.PYTHON_VERSION }} - name: Install Python packages run: | @@ -49,10 +51,10 @@ jobs: - name: Git Clone uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python ${{ env.PYTHON_VERSION }} uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ env.PYTHON_VERSION }} - name: Install Python packages run: |