Skip to content

Commit fcf7334

Browse files
Moskovychalessfg
andcommitted
Simplified list of files for cleanup-config.yml (#54)
Co-authored-by: alessfg <[email protected]>
1 parent 2838d65 commit fcf7334

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/molecule.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@ jobs:
2424
- stable_push
2525
steps:
2626
- name: Check out the codebase
27+
if: "!(matrix.scenario == 'plus' && github.event.pull_request.head.repo.full_name != github.repository)"
2728
uses: actions/checkout@v2
2829

2930
- name: Set up Python 3
31+
if: "!(matrix.scenario == 'plus' && github.event.pull_request.head.repo.full_name != github.repository)"
3032
uses: actions/setup-python@v2
3133
with:
3234
python-version: 3.x
3335

3436
- name: Install Molecule dependencies
37+
if: "!(matrix.scenario == 'plus' && github.event.pull_request.head.repo.full_name != github.repository)"
3538
run: |
3639
pip3 install ansible-base==2.10.3
3740
pip3 install ansible==2.10.3
@@ -41,8 +44,8 @@ jobs:
4144
pip3 install docker==4.4.0
4245
4346
- name: Run Molecule tests
47+
if: "!(matrix.scenario == 'plus' && github.event.pull_request.head.repo.full_name != github.repository)"
4448
run: molecule test -s ${{ matrix.scenario }}
45-
if: contains(${{ matrix.scenario }}, "plus") && !(github.event_name == "pull_request" && github.event.pull_request.head.repo.fork)
4649
env:
4750
PY_COLORS: "1"
4851
ANSIBLE_FORCE_COLOR: "1"

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
ENHANCEMENTS:
66

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).
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+
* The GitHub actions Molecule CI/CD workflow should now correctly avoid running 'Plus' related tests on external PRs.
9+
* The `cleanup-config.yml` playbook has been slightly refactored and simplified.
810

911
## 0.3.1 (December 22, 2020)
1012

tasks/config/cleanup-config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
file:
1313
path: "{{ item }}"
1414
state: absent
15-
loop: "{{ nginx_config_files.results | default('') | map(attribute='files') | sum(start=[]) | map(attribute='path') | list
16-
+ nginx_config_cleanup_files | default('') | list }}"
15+
loop: "{{ nginx_config_files.files | default('') | map(attribute='path') |
16+
list + nginx_config_cleanup_files | default('') | list }}"
1717
notify: (Handler - NGINX Config) Run NGINX

0 commit comments

Comments
 (0)