Skip to content

Commit cb66bbf

Browse files
Update check-version.yml
1 parent 8f1eaa1 commit cb66bbf

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/check-version.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,21 @@ jobs:
3535
echo "CLEANED_LATEST_VERSION=$CLEANED_LATEST_VERSION" >> "$GITHUB_OUTPUT"
3636
shell: bash
3737

38+
- name: Install Python dependencies
39+
run: python -m pip install packaging
40+
# This step uses the default shell (bash) to run the pip command
41+
3842
- name: Compare versions with Python and comment
3943
env:
4044
ISSUE_VERSION: ${{ steps.parse_issue.outputs.payload.version }}
4145
LATEST_VERSION: ${{ steps.clean_release_version.outputs.CLEANED_LATEST_VERSION }}
4246
ISSUE_NUMBER: ${{ github.event.issue.number }}
4347
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4448
run: |
45-
# Install Python and packaging library if not already in runner image
46-
python -m pip install packaging
47-
4849
# Start of Python script
4950
import os
5051
import tempfile
51-
import subprocess # Import subprocess module
52+
import subprocess
5253
from packaging.version import parse
5354
5455
issue_version = os.environ['ISSUE_VERSION']

0 commit comments

Comments
 (0)