Skip to content

Commit 171e830

Browse files
authored
Do not run Molecule CI/CD workflow when creating a new release (#354)
1 parent 5e918e6 commit 171e830

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/galaxy.yml

+2-4
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

+9-5
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:
@@ -33,22 +37,22 @@ jobs:
3337
- name: Set up Python 3
3438
uses: actions/setup-python@v2
3539
with:
36-
python-version: '3.x'
40+
python-version: 3.x
3741

3842
- name: Install Molecule dependencies
3943
run: |
4044
pip3 install ansible-base==2.10.3
4145
pip3 install ansible==2.10.3
4246
pip3 install ansible-lint==4.3.7
4347
pip3 install yamllint==1.25.0
44-
pip3 install 'molecule[docker]'==3.2.1
48+
pip3 install "molecule[docker]"==3.2.1
4549
pip3 install docker==4.4.0
4650
4751
- name: Run Molecule tests
4852
run: molecule test -s ${{ matrix.scenario }}
49-
if: contains(${{ matrix.scenario }}, 'plus') && !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork)
53+
if: contains(${{ matrix.scenario }}, "plus") && !(github.event_name == "pull_request" && github.event.pull_request.head.repo.fork)
5054
env:
51-
PY_COLORS: '1'
52-
ANSIBLE_FORCE_COLOR: '1'
55+
PY_COLORS: "1"
56+
ANSIBLE_FORCE_COLOR: "1"
5357
NGINX_CRT: ${{ secrets.NGINX_CRT }}
5458
NGINX_KEY: ${{ secrets.NGINX_KEY }}

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ BREAKING CHANGES:
66

77
**The NGINX configuration functionalities included in this role have been removed as of release 0.19.0.** There now is a separate role to manage and create NGINX configurations available [here](https://github.com/nginxinc/ansible-role-nginx-config). Any new issues or PRs related to configuring NGINX should be submitted in the new NGINX configuration Ansible role repository. New issues or PRs related to configuring NGINX submitted in this repository will not be worked on.
88

9+
ENHANCEMENTS:
10+
11+
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).
12+
913
## 0.18.2 (December 22, 2020)
1014

1115
ENHANCEMENTS:

0 commit comments

Comments
 (0)