From 9cd6235947e3b8a0483ef0dd6b611efcff206f17 Mon Sep 17 00:00:00 2001 From: Fabian Koller Date: Sat, 9 Jan 2021 10:46:38 +0100 Subject: [PATCH] Disable ansible-galaxy import Repository structure not compatible (galaxy expects the role to be at the root of the repository, not in a subfolder). --- .github/workflows/ansible.yml | 50 ++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ansible.yml b/.github/workflows/ansible.yml index 67383ecf8..aacc4b44e 100644 --- a/.github/workflows/ansible.yml +++ b/.github/workflows/ansible.yml @@ -31,27 +31,29 @@ jobs: cd ansible molecule test working-directory: "${{ github.repository }}" - # https://galaxy.ansible.com/docs/contributing/importing.html - release: - runs-on: ubuntu-latest - needs: - - test - # https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#github-context - if: contains(github.ref, 'refs/tags/') - steps: - - name: Check out the codebase - uses: actions/checkout@v2 - with: - path: "${{ github.repository }}" - - name: Set up Python - uses: actions/setup-python@v2 - - name: Install dependencies - run: | - python3 -m pip install --upgrade ansible-base - ansible --version - python --version - - name: Trigger a new import on Galaxy - run: | - cd ansible - ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2) - working-directory: "${{ github.repository }}" + # # https://galaxy.ansible.com/docs/contributing/importing.html + # release: + # runs-on: ubuntu-latest + # needs: + # - test + # # https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#github-context + # if: contains(github.ref, 'refs/tags/') + # steps: + # - name: Check out the codebase + # uses: actions/checkout@v2 + # with: + # path: "${{ github.repository }}" + # - name: Set up Python + # uses: actions/setup-python@v2 + # - name: Install dependencies + # run: | + # python3 -m pip install --upgrade ansible-base + # ansible --version + # python --version + # - name: Trigger a new import on Galaxy + # # TODO Check if source if pulled from cwd or imported from github + # # https://github.com/ansible/ansible/blob/devel/lib/ansible/cli/galaxy.py + # run: | + # cd ansible + # ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2) + # working-directory: "${{ github.repository }}"