Skip to content

Commit

Permalink
restricted push target to only main branch.
Browse files Browse the repository at this point in the history
this will make actions not to run on pull_request for push.
there is already pull_request target running for pull_request

Signed-off-by: Sumanth Lingappa <[email protected]>
  • Loading branch information
sumanth-lingappa committed Feb 23, 2024
1 parent bfad6d1 commit 29ecf22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- plugins/**
- tests/**
push:
branches:
- main
paths:
- plugins/**
- tests/**
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
ansible-lint:
name: ansible-lint
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- plugins/**
- tests/**
push:
branches:
- main
paths:
- plugins/**
- tests/**
Expand Down

0 comments on commit 29ecf22

Please sign in to comment.