From f1155f1a7bf8ac5af06e5762729d800ffe6c9d19 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Mon, 27 Mar 2023 23:00:21 +0200 Subject: [PATCH] publish time --- .github/workflows/publish.yml | 18 ++++++++++++++++++ molecule/default/tests/test_default.py | 2 +- molecule/with_ssh_keys/tests/test_default.py | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..784f2c9 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,18 @@ +--- +name: publish +on: + push: + branches: + - main + +jobs: + publish: + name: Publish to galaxy + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Publish + uses: ednxzu/galaxy-import-role@v1 + with: + galaxy-api-key: ${{ secrets.GALAXY_API_TOKEN }} diff --git a/molecule/default/tests/test_default.py b/molecule/default/tests/test_default.py index 05368c9..1e86e9f 100644 --- a/molecule/default/tests/test_default.py +++ b/molecule/default/tests/test_default.py @@ -9,7 +9,7 @@ def test_hosts_file(host): assert etc_hosts.group == "root" def test_ansible_user_group(host): - """Validate consul user and group.""" + """Validate ansible user and group.""" ansible_group = host.group("ansible") ansible_user = host.user("ansible") assert ansible_group.exists diff --git a/molecule/with_ssh_keys/tests/test_default.py b/molecule/with_ssh_keys/tests/test_default.py index 283d2da..2d79ae7 100644 --- a/molecule/with_ssh_keys/tests/test_default.py +++ b/molecule/with_ssh_keys/tests/test_default.py @@ -9,7 +9,7 @@ def test_hosts_file(host): assert etc_hosts.group == "root" def test_ansible_user_group(host): - """Validate consul user and group.""" + """Validate ansible user and group.""" ansible_group = host.group("ansible") ansible_user = host.user("ansible") assert ansible_group.exists