mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-05-25 22:27:23 +03:00
31 lines
633 B
YAML
31 lines
633 B
YAML
name: Ansible Galaxy
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
jobs:
|
|
galaxy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install Ansible
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install ansible-core
|
|
|
|
- name: Trigger a new import on Galaxy
|
|
run: >-
|
|
ansible-galaxy role import
|
|
--api-key ${{ secrets.GALAXY_API_KEY }}
|
|
${{ github.repository_owner }}
|
|
${{ github.event.repository.name }}
|
|
|