Skip to content

Commit

Permalink
Do not run Molecule CI/CD workflow when creating a new release (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessfg authored Dec 23, 2020
1 parent 5e918e6 commit 171e830
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
name: Ansible Galaxy import
on:
push:
tags:
- '*'
release:
jobs:
galaxy:
name: Galaxy
Expand All @@ -15,7 +13,7 @@ jobs:
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: 3.x

- name: Install Ansible
run: pip3 install ansible-base==2.10.3
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
name: Molecule CI/CD
on:
pull_request:
branches:
- main
push:
branches:
- main
ignore-tags:
- "*"
schedule:
- cron: "0 0 1 * *"
jobs:
Expand Down Expand Up @@ -33,22 +37,22 @@ jobs:
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: 3.x

- name: Install Molecule dependencies
run: |
pip3 install ansible-base==2.10.3
pip3 install ansible==2.10.3
pip3 install ansible-lint==4.3.7
pip3 install yamllint==1.25.0
pip3 install 'molecule[docker]'==3.2.1
pip3 install "molecule[docker]"==3.2.1
pip3 install docker==4.4.0
- name: Run Molecule tests
run: molecule test -s ${{ matrix.scenario }}
if: contains(${{ matrix.scenario }}, 'plus') && !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork)
if: contains(${{ matrix.scenario }}, "plus") && !(github.event_name == "pull_request" && github.event.pull_request.head.repo.fork)
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
NGINX_CRT: ${{ secrets.NGINX_CRT }}
NGINX_KEY: ${{ secrets.NGINX_KEY }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ BREAKING CHANGES:

**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.

ENHANCEMENTS:

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).

## 0.18.2 (December 22, 2020)

ENHANCEMENTS:
Expand Down

0 comments on commit 171e830

Please sign in to comment.