From ff8fa7f9dcda7b5e3da91b3228438b97e52e4e84 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 23 Feb 2023 12:55:07 +0000 Subject: [PATCH] The Lint jobs should also run on `workflow_dispatch` events Signed-off-by: Pedro Algarvio --- .github/workflows/lint-action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint-action.yml b/.github/workflows/lint-action.yml index dff0377548d..6e0df43e4d0 100644 --- a/.github/workflows/lint-action.yml +++ b/.github/workflows/lint-action.yml @@ -19,7 +19,7 @@ jobs: Salt: name: Lint Salt's Source Code runs-on: ubuntu-latest - if: ${{ github.event_name == 'push' || github.event_name == 'schedule' || fromJSON(inputs.changed-files)['salt'] || fromJSON(inputs.changed-files)['lint'] }} + if: ${{ contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) || fromJSON(inputs.changed-files)['salt'] || fromJSON(inputs.changed-files)['lint'] }} container: image: python:3.8-slim-buster @@ -61,7 +61,7 @@ jobs: Tests: name: Lint Salt's Test Suite runs-on: ubuntu-latest - if: ${{ github.event_name == 'push' || github.event_name == 'schedule' || fromJSON(inputs.changed-files)['tests'] || fromJSON(inputs.changed-files)['lint'] }} + if: ${{ contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) || fromJSON(inputs.changed-files)['tests'] || fromJSON(inputs.changed-files)['lint'] }} container: image: python:3.8-slim-buster