Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
fix: use pyversion
Browse files Browse the repository at this point in the history
  • Loading branch information
alperenkose committed Oct 2, 2024
1 parent 649aa44 commit d558d26
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/_discover_python_ver.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d558d26

Please sign in to comment.