Skip to content

Commit

Permalink
Devops 1597 edit linter workflow to run anywhere (#234)
Browse files Browse the repository at this point in the history
* add repo to checkout action

* Add modify workflow check before lint and version check
  • Loading branch information
Eeebru authored Jan 15, 2024
1 parent 1fc74dd commit f197c27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/workflow-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- name: Checkout Branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
repository: bitwarden/gh-actions
fetch-depth: 0

- name: Get changed workflows
Expand All @@ -31,13 +32,15 @@ jobs:
echo "modified-workflows=$MODIFIED_EXISTING_WORKFLOWS" >> $GITHUB_OUTPUT
- name: Workflow Lint
if: steps.changed-workflows.outputs.modified-workflows != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: bitwarden/gh-actions/lint-workflow@main
with:
workflows: ${{ steps.changed-workflows.outputs.modified-workflows }}

- name: Get changed files
if: steps.changed-workflows.outputs.modified-workflows != ''
id: changed-files
uses: tj-actions/changed-files@716b1e13042866565e00e85fd4ec490e186c4a2f # v41.0.1
with:
Expand Down

0 comments on commit f197c27

Please sign in to comment.