Skip to content

[deps]: Update slackapi/slack-github-action action to v2 #787

[deps]: Update slackapi/slack-github-action action to v2

[deps]: Update slackapi/slack-github-action action to v2 #787

name: Lint workflow
on:
pull_request:
paths:
- .github/workflows/**
merge_group:
types: [checks_requested]
workflow_call:
workflow_dispatch:
jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Check out branch
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
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