From d558d26524fd1956cae053b149d56f002218c53d Mon Sep 17 00:00:00 2001 From: Alp Kose Date: Wed, 2 Oct 2024 12:30:27 +0300 Subject: [PATCH] fix: use pyversion --- .github/workflows/_discover_python_ver.yml | 28 ++++++++++++++++++++++ .github/workflows/ci.yml | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/_discover_python_ver.yml diff --git a/.github/workflows/_discover_python_ver.yml b/.github/workflows/_discover_python_ver.yml new file mode 100644 index 000000000..e8307eeb6 --- /dev/null +++ b/.github/workflows/_discover_python_ver.yml @@ -0,0 +1,28 @@ +name: (sub) Discover Python version + +defaults: + run: + shell: bash + +permissions: + contents: read + +on: + workflow_call: + outputs: + pyversion: + description: A discovered Python version + value: ${{ jobs.pyversion.outputs.pyversion }} + +jobs: + pyversion: + name: Discover minimum Python version + runs-on: ubuntu-latest + outputs: + pyversion: ${{ steps.pyversion.outputs.pyversion }} + steps: + - name: checkout code + uses: actions/checkout@v4 + - name: discover Python version + id: pyversion + uses: PaloAltoNetworks/pan-os-upgrade-assurance/.github/actions/discover_python_version@v0.3.1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b56abcf2..4855df751 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,7 +110,7 @@ jobs: pyversion: name: Discover minimum Python version - uses: PaloAltoNetworks/pan-os-upgrade-assurance/.github/workflows/_discover_python_ver.yml@v0.3.1 + uses: ./.github/workflows/_discover_python_ver.yml format: name: Code Format Check