2020-12-22 17:58:21 +01:00
|
|
|
---
|
|
|
|
name: Ansible Galaxy import
|
|
|
|
on:
|
2020-12-23 18:04:38 +01:00
|
|
|
release:
|
2021-01-20 18:52:28 +01:00
|
|
|
types:
|
|
|
|
- published
|
2020-12-22 17:58:21 +01:00
|
|
|
jobs:
|
|
|
|
galaxy:
|
|
|
|
name: Galaxy
|
2021-01-21 14:22:04 +01:00
|
|
|
runs-on: ubuntu-20.04
|
2020-12-22 17:58:21 +01:00
|
|
|
steps:
|
|
|
|
- name: Check out the codebase
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Python 3
|
2021-05-17 15:38:44 +02:00
|
|
|
uses: actions/setup-python@v2.2.2
|
2020-12-22 17:58:21 +01:00
|
|
|
with:
|
2020-12-23 18:04:38 +01:00
|
|
|
python-version: 3.x
|
2020-12-22 17:58:21 +01:00
|
|
|
|
|
|
|
- name: Install Ansible
|
2021-02-09 20:33:36 +01:00
|
|
|
run: pip3 install -r .github/workflows/requirements/requirements_galaxy.txt
|
2020-12-22 17:58:21 +01:00
|
|
|
|
|
|
|
- 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)
|