From ce5ba090e99a87f1735e692749aaf5d5ca7618aa Mon Sep 17 00:00:00 2001 From: Sumanth Lingappa Date: Fri, 10 May 2024 09:09:59 +0530 Subject: [PATCH] updated workflows to trigger on push to main branch to avoid duplicate workflows for the same commit Signed-off-by: Sumanth Lingappa --- .github/workflows/bandit.yml | 2 ++ .github/workflows/lint.yml | 4 +++- .github/workflows/test.yml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml index a431beedc..642c4bceb 100644 --- a/.github/workflows/bandit.yml +++ b/.github/workflows/bandit.yml @@ -4,6 +4,8 @@ on: workflow_dispatch: pull_request: push: + branches: + - main jobs: bandit-check: runs-on: ubuntu-latest diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3ac68832c..7d10277ec 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,7 +3,7 @@ name: ansible-lint on: workflow_dispatch: pull_request: - paths-ignore: + paths-ignore: - .github/** - assets/** - docs/** @@ -11,6 +11,8 @@ on: - .yamlfmt - .yamllint push: + branches: + - main paths-ignore: - .github/** - assets/** diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7a2b2b780..4ab9f78b3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,6 +7,8 @@ on: - plugins/** - tests/** push: + branches: + - main paths: - plugins/** - tests/**