From 2f1b4546a45d5d4bf5319a1c4b18a5ad061e2c39 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 4 Nov 2020 21:31:05 -0600 Subject: [PATCH 1/6] Issue #201: Try to match tag pushes instead of release creation. --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68b4dcb..209c6ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,9 +7,9 @@ name: Release 'on': - release: - types: - - published + push: + tags: + - '*' defaults: run: From a020f94e7d66f761cf2c0dddc7616e374987ae56 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 4 Nov 2020 21:56:06 -0600 Subject: [PATCH 2/6] Issue #201: Use proper repository variable in actions workflow syntax. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 209c6ce..5c4b472 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,5 +38,5 @@ jobs: run: >- ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} - $(echo $GITHUB_REPOSITORY | cut -d/ -f1) - $(echo $GITHUB_REPOSITORY | cut -d/ -f2) + $(echo ${{ github.repository }} | cut -d/ -f1) + $(echo ${{ github.repository }} | cut -d/ -f2) From 2f25dcb9c5aeb3f436c8bfd10be14189e1e95c18 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 4 Nov 2020 21:59:23 -0600 Subject: [PATCH 3/6] Another attempt at getting the release to work. --- .github/workflows/release.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c4b472..06be705 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,8 +35,4 @@ jobs: run: pip3 install ansible-base - name: Trigger a new import on Galaxy. - run: >- - ansible-galaxy role import - --api-key ${{ secrets.GALAXY_API_KEY }} - $(echo ${{ github.repository }} | cut -d/ -f1) - $(echo ${{ github.repository }} | cut -d/ -f2) + run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2) From 4ac7a07fb0238e9cfba8a7d96d8291224580059a Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Thu, 5 Nov 2020 09:49:31 -0600 Subject: [PATCH 4/6] Align molecule config with other roles. --- molecule/default/molecule.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 0714c43..7490710 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -13,6 +13,5 @@ platforms: pre_build_image: true provisioner: name: ansible - log: true playbooks: converge: ${MOLECULE_PLAYBOOK:-converge.yml} From cd20a997b05776a04bdd4414a1edc08a0f2cbc5b Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Mon, 22 Feb 2021 16:12:22 -0600 Subject: [PATCH 5/6] Make ansible-lint work again. --- .ansible-lint | 3 ++- .github/workflows/ci.yml | 2 +- .gitignore | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.ansible-lint b/.ansible-lint index 5557294..acc8255 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,2 +1,3 @@ skip_list: - - '106' + - 'yaml' + - 'role-name' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c775c47..a629671 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: python-version: '3.x' - name: Install test dependencies. - run: pip3 install yamllint ansible-lint + run: pip3 install yamllint ansible ansible-lint - name: Lint code. run: | diff --git a/.gitignore b/.gitignore index f56f5b5..8840c8f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *.retry */__pycache__ *.pyc +.cache + From ac1de6c5ae8f3a1d925f55b5769b12ede6642802 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Mon, 15 Mar 2021 09:26:43 -0500 Subject: [PATCH 6/6] Remove ansible-lint from roles. --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a629671..91bbbc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,12 +29,11 @@ jobs: python-version: '3.x' - name: Install test dependencies. - run: pip3 install yamllint ansible ansible-lint + run: pip3 install yamllint - name: Lint code. run: | yamllint . - ansible-lint molecule: name: Molecule