⚗️ Try import role in galaxy

This commit is contained in:
Emilien Mantel
2024-08-27 16:30:43 +02:00
parent f882afd7d9
commit 79b1c50295
6 changed files with 21 additions and 11 deletions

View File

@@ -11,7 +11,15 @@ jobs:
steps:
- name: Fetch code
uses: actions/checkout@v4
- name: galaxy
uses: robertdebock/galaxy-action@1.2.0
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}
- name: Set up Python 3.
uses: actions/setup-python@v5
- name: Install Ansible.
run: pip3 install ansible-core
- name: Import role to Galaxy.
run: >-
ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }}
$(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
--branch fix_galaxy