Do not run Molecule CI/CD workflow when creating a new release (#354)

This commit is contained in:
Alessandro Fael Garcia 2020-12-23 18:04:38 +01:00 committed by GitHub
parent 5e918e61e2
commit 171e8300bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 9 deletions

View File

@ -1,9 +1,7 @@
---
name: Ansible Galaxy import
on:
push:
tags:
- '*'
release:
jobs:
galaxy:
name: Galaxy
@ -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

View File

@ -2,9 +2,13 @@
name: Molecule CI/CD
on:
pull_request:
branches:
- main
push:
branches:
- main
ignore-tags:
- "*"
schedule:
- cron: "0 0 1 * *"
jobs:
@ -33,7 +37,7 @@ 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: |
@ -41,14 +45,14 @@ jobs:
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 }}

View File

@ -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: