From ef2b87d42d6ebeb333a3d78fba257625bf78b13f Mon Sep 17 00:00:00 2001 From: acichon Date: Thu, 16 May 2024 19:41:46 +0200 Subject: [PATCH] use galaxy-importer from pip --- .github/workflows/galaxy-importer.yml | 34 +++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/.github/workflows/galaxy-importer.yml b/.github/workflows/galaxy-importer.yml index 529adb7..9a8d6c8 100644 --- a/.github/workflows/galaxy-importer.yml +++ b/.github/workflows/galaxy-importer.yml @@ -15,5 +15,35 @@ on: - main jobs: - galaxy_importer: - uses: ansible-network/github_actions/.github/workflows/galaxy_importer.yml@main + galaxy-importer: + runs-on: + - ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.11 + + - name: Set up venv + run: | + python -m pip install --upgrade pip + pip install virtualenv + mkdir venv + virtualenv venv/venv-2.16 + + - name: Install dependencies + run: | + source venv/venv-2.16/bin/activate + python -m pip install --upgrade pip + pip install ansible + pip install ansible-importer + pip install galaxy-importer + + - name: Run ac-galaxy-importer + run: | + source venv/venv-2.16/bin/activate + ./ac --ac-galaxy-importer