Skip to content

Galaxy

Galaxy #19

Workflow file for this run

name: Galaxy
'on':
workflow_run:
workflows:
- Release
branches:
- master
types:
- completed
jobs:
galaxy:
name: Galaxy
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python 3.x
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Ansible
run: python -m pip install --disable-pip-version-check ansible
- name: Trigger a new import on 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)