Ansible Galaxy Role Import #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Ansible Galaxy import | |
on: | |
release: | |
types: | |
- published | |
workflow_dispatch: | |
jobs: | |
galaxy: | |
name: Galaxy | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out the codebase | |
uses: actions/checkout@v4 | |
- name: Set up Python 3 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install Ansible | |
run: pip3 install -r .github/workflows/requirements/requirements_galaxy.txt | |
- name: Import release to Ansible Galaxy | |
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2) |