We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 490a86f commit c711276Copy full SHA for c711276
.github/workflows/release.yml
@@ -0,0 +1,29 @@
1
+---
2
+name: Publish Ansible Role
3
+
4
+on:
5
+ push:
6
+ tags:
7
+ - "*"
8
9
+jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ env:
13
+ SECRET: ${{ secrets.GALAXY_API_KEY }}
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v4
17
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.x"
22
23
+ - name: Install Ansible
24
+ run: pip install ansible
25
26
+ - name: Trigger a new import on Galaxy. # geerlingguy
27
+ run: >-
28
+ ansible-galaxy role import --api-key $SECRET
29
+ $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
0 commit comments