Skip to content

Commit aeafa82

Browse files
Updated actions to only run when PR is not draft (#1412)
* Updated actions to only run when PR is not draft * Add test * Modified draft condition * Update zos_apf.py * Modified workflows * test * test
1 parent 2697e32 commit aeafa82

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

.github/workflows/ac-ansible-test-sanity.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: AC Ansible sanity
22

33
on:
44
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
56
branches:
67
- dev
78
- staging*
@@ -38,6 +39,7 @@ on:
3839

3940
jobs:
4041
ansible-sanity:
42+
if: github.event.pull_request.draft == false
4143
runs-on: ubuntu-latest
4244
env:
4345
branch: ${{ github.event.pull_request.head.ref }}

.github/workflows/ac-bandit.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ name: AC Bandit
22

33
on:
44
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
56
branches:
67
- dev
78
- staging*
8-
9+
paths:
10+
- 'plugins/**'
11+
912
jobs:
1013
bandit:
14+
if: github.event.pull_request.draft == false
1115
runs-on: ubuntu-latest
1216

1317
steps:

.github/workflows/ac-galaxy-importer.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,44 @@ name: AC Galaxy Importer
22

33
on:
44
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
56
branches:
67
- dev
78
- staging*
8-
9+
paths-ignore:
10+
- '**.tar.gz'
11+
- 'pycache/**'
12+
- '.ansible-lint'
13+
- 'cache/**'
14+
- '.DS_Store'
15+
- '.git/**'
16+
- '.github/**'
17+
- '.gitignore'
18+
- '.python-version'
19+
- '.pytest_cache/**'
20+
- '.vscode/**'
21+
- 'Jenkinsfile'
22+
- 'ac'
23+
- 'ansible.cfg'
24+
- 'changelogs/**'
25+
- 'collections/**'
26+
- 'docs/**'
27+
- 'scripts/**'
28+
- 'test_config.yml'
29+
- 'tests/*.ini'
30+
- 'tests/*.py'
31+
- 'tests/.pytest_cache'
32+
- 'tests/pycache'
33+
- 'tests/functional'
34+
- 'tests/helpers'
35+
- 'tests/requirements.txt'
36+
- 'tests/unit'
37+
- 'tests/sanity/ignore-*'
38+
- 'venv*'
39+
940
jobs:
1041
galaxy-importer:
42+
if: github.event.pull_request.draft == false
1143
runs-on: ubuntu-latest
1244

1345
steps:

.github/workflows/ac_changelog.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: AC Changelog Lint
22

33
on:
44
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
56
paths:
67
- 'changelogs/fragments/*'
78
branches:
@@ -10,6 +11,7 @@ on:
1011

1112
jobs:
1213
lint:
14+
if: github.event.pull_request.draft == false
1315
runs-on: ubuntu-latest
1416

1517
steps:

0 commit comments

Comments
 (0)