2020-12-22 17:58:21 +01:00
|
|
|
---
|
|
|
|
name: Ansible Galaxy import
|
2021-10-11 17:08:55 +02:00
|
|
|
"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
|
2021-11-09 19:43:47 +01:00
|
|
|
uses: actions/checkout@v2.4.0
|
2020-12-22 17:58:21 +01:00
|
|
|
|
|
|
|
- name: Set up Python 3
|
2022-03-01 13:15:23 +01:00
|
|
|
uses: actions/setup-python@v3
|
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)
|