|
|
|
|
@ -20,22 +20,13 @@ jobs:
@@ -20,22 +20,13 @@ jobs:
|
|
|
|
|
repository: ${{ github.repository }} |
|
|
|
|
fetch-depth: 0 |
|
|
|
|
|
|
|
|
|
- name: Get changed files |
|
|
|
|
id: changed-workflows |
|
|
|
|
uses: tj-actions/changed-files@dcc7a0cba800f454d79fff4b993e8c3555bcc0a8 # v45.0.7 |
|
|
|
|
with: |
|
|
|
|
files: .github/workflows/** |
|
|
|
|
|
|
|
|
|
- name: Set up Python 3.11 |
|
|
|
|
if: steps.changed-workflows.outputs.all_changed_files_count != '0' |
|
|
|
|
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 |
|
|
|
|
with: |
|
|
|
|
python-version: "3.11" |
|
|
|
|
|
|
|
|
|
- name: Install bwwl binary |
|
|
|
|
if: steps.changed-workflows.outputs.all_changed_files_count != '0' |
|
|
|
|
run: python -m pip install --upgrade bitwarden_workflow_linter |
|
|
|
|
|
|
|
|
|
- name: Lint |
|
|
|
|
if: steps.changed-workflows.outputs.all_changed_files_count != '0' |
|
|
|
|
run: bwwl lint -f .github/workflows |
|
|
|
|
|