Skip to content

Commit ac24774

Browse files
committed
set up python version
1 parent 11b9d0d commit ac24774

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/workflow-linter.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,20 @@ jobs:
4343
echo "count=$COUNT" >> $GITHUB_OUTPUT
4444
echo "modified-workflows=$MODIFIED_EXISTING_WORKFLOWS" >> $GITHUB_OUTPUT
4545
46-
- name: Download bwwl binary
46+
- name: Set up Python 3.11
47+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
48+
with:
49+
python-version: "3.11"
50+
51+
- name: Upgrade pip and install bwwl binary
4752
# if: steps.changed-workflows.outputs.count != 0
4853
run: |
49-
python3 -m pip install --upgrade bitwarden_workflow_linter
54+
python -m pip install --upgrade pip
55+
python -m pip install --upgrade bitwarden_workflow_linter
5056
5157
- name: Lint
5258
# if: steps.changed-workflows.outputs.count != 0
53-
run: |
54-
bwwl lint -f ${{ steps.changed-workflows.outputs.modified-workflows }}
59+
run: bwwl lint -f ${{ steps.changed-workflows.outputs.modified-workflows }}
5560

5661
- name: Get changed files
5762
# if: steps.changed-workflows.outputs.count != 0

0 commit comments

Comments
 (0)