From 8dd69c8cf5aa8f263974a9349a77b242bbaf6c09 Mon Sep 17 00:00:00 2001 From: Opeyemi Alao <54288773+Eeebru@users.noreply.github.com> Date: Mon, 15 Jan 2024 15:29:00 +0000 Subject: [PATCH] Add modify workflow check before lint and version check --- .github/workflows/workflow-linter.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/workflow-linter.yml b/.github/workflows/workflow-linter.yml index abea867e..e6260bbe 100644 --- a/.github/workflows/workflow-linter.yml +++ b/.github/workflows/workflow-linter.yml @@ -32,6 +32,7 @@ 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 @@ -39,6 +40,7 @@ jobs: 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: