Skip to content

add publishing to galaxy #1

add publishing to galaxy

add publishing to galaxy #1

Workflow file for this run

---
name: Publish Ansible Role
on:
- push
#on:
# push:
# tags:
# - "*" # publish on any tag
jobs:
publish:
runs-on: ubuntu-latest
env:
SECRET: ${{ secrets.GALAXY_API_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install Ansible
run: pip install ansible
- name: Trigger a new import on Galaxy.
run: >-
ansible-galaxy role import --api-key $SECRET
$(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)