Skip to content

Commit e2b8d0d

Browse files
authored
Add Ansible Galaxy tag import workflow (#409)
1 parent 7a7f143 commit e2b8d0d

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Refresh Ansible Galaxy
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
import:
11+
name: Import role on tag
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.12"
19+
20+
- name: Install Ansible
21+
run: python -m pip install --upgrade pip ansible-core
22+
23+
- name: Trigger Ansible Galaxy import
24+
env:
25+
GALAXY_API_KEY: ${{ secrets.GALAXY_API_KEY }}
26+
run: >
27+
ansible-galaxy role import
28+
--api-key "$GALAXY_API_KEY"
29+
ansistrano
30+
deploy

0 commit comments

Comments
 (0)