Skip to content

Commit 2838d65

Browse files
authored
Do not run Molecule CI/CD workflow when creating a new release (#53)
1 parent 35bbb2c commit 2838d65

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.github/workflows/galaxy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
22
name: Ansible Galaxy import
33
on:
4-
push:
5-
tags:
6-
- '*'
4+
release:
75
jobs:
86
galaxy:
97
name: Galaxy
@@ -15,7 +13,7 @@ jobs:
1513
- name: Set up Python 3
1614
uses: actions/setup-python@v2
1715
with:
18-
python-version: '3.x'
16+
python-version: 3.x
1917

2018
- name: Install Ansible
2119
run: pip3 install ansible-base==2.10.3

.github/workflows/molecule.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
name: Molecule CI/CD
33
on:
44
pull_request:
5+
branches:
6+
- main
57
push:
68
branches:
79
- main
10+
ignore-tags:
11+
- "*"
812
schedule:
913
- cron: "0 0 1 * *"
1014
jobs:
@@ -25,22 +29,22 @@ jobs:
2529
- name: Set up Python 3
2630
uses: actions/setup-python@v2
2731
with:
28-
python-version: '3.x'
32+
python-version: 3.x
2933

3034
- name: Install Molecule dependencies
3135
run: |
3236
pip3 install ansible-base==2.10.3
3337
pip3 install ansible==2.10.3
3438
pip3 install ansible-lint==4.3.7
3539
pip3 install yamllint==1.25.0
36-
pip3 install 'molecule[docker]'==3.2.1
40+
pip3 install "molecule[docker]"==3.2.1
3741
pip3 install docker==4.4.0
3842
3943
- name: Run Molecule tests
4044
run: molecule test -s ${{ matrix.scenario }}
41-
if: contains(${{ matrix.scenario }}, 'plus') && !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork)
45+
if: contains(${{ matrix.scenario }}, "plus") && !(github.event_name == "pull_request" && github.event.pull_request.head.repo.fork)
4246
env:
43-
PY_COLORS: '1'
44-
ANSIBLE_FORCE_COLOR: '1'
47+
PY_COLORS: "1"
48+
ANSIBLE_FORCE_COLOR: "1"
4549
NGINX_CRT: ${{ secrets.NGINX_CRT }}
4650
NGINX_KEY: ${{ secrets.NGINX_KEY }}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.3.2 (Unreleased)
4+
5+
ENHANCEMENTS:
6+
7+
The GitHub actions Molecule CI/CD workflow is no longer run on a new release (this is not necessary since it already runs on every push).
8+
39
## 0.3.1 (December 22, 2020)
410

511
ENHANCEMENTS:

0 commit comments

Comments
 (0)