From 6294a2a82d75fb1ee310247121f2e7afe72c0043 Mon Sep 17 00:00:00 2001 From: brunobenchimol Date: Sun, 17 Nov 2024 20:45:05 -0300 Subject: [PATCH] fix release workflow --- .github/workflows/release.yml | 46 +++-------------------------------- 1 file changed, 4 insertions(+), 42 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96c6ac2..da49d54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,48 +17,8 @@ defaults: jobs: - molecule: - name: Molecule - runs-on: ubuntu-latest - strategy: - matrix: - include: - # - distro: centos8 - # playbook: converge-issue-certificate.yml - # experimental: false - - distro: rockylinux9 - playbook: converge.yml - experimental: false - - steps: - - name: Check out the codebase. - uses: actions/checkout@v4 - with: - path: 'brunobenchimol.certbot_dns' - - - name: Set up Python 3. - uses: actions/setup-python@v5 - with: - python-version: '3.x' - - - name: Install test dependencies. - run: pip3 install ansible molecule molecule-plugins[docker] docker - - - name: Run Molecule tests. - run: molecule test - continue-on-error: ${{ matrix.experimental }} - env: - PY_COLORS: '1' - ANSIBLE_FORCE_COLOR: '1' - MOLECULE_DISTRO: ${{ matrix.distro }} - MOLECULE_PLAYBOOK: ${{ matrix.playbook }} - CERTBOT_DNS_API_TOKEN: ${{ secrets.CERTBOT_DNS_API_TOKEN }} - CERTBOT_DNS_API_EMAIL: ${{ secrets.CERTBOT_DNS_API_EMAIL }} - release: name: Release on Galaxy - needs: - - molecule runs-on: ubuntu-latest steps: - name: Check out the codebase. @@ -72,8 +32,10 @@ jobs: python-version: '3.x' - name: Install Ansible. - run: pip3 install ansible-base ansible-core + run: pip3 install ansible-core # Alternative: https://github.com/marketplace/actions/publish-ansible-role-to-galaxy - 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) \ No newline at end of file