Skip to content

Merge pull request #1 from CodethinkLabs/scott/add-release-workflow #1

Merge pull request #1 from CodethinkLabs/scott/add-release-workflow

Merge pull request #1 from CodethinkLabs/scott/add-release-workflow #1

Workflow file for this run

---
name: Release role
on:
push:
tags:
- '*'
jobs:
import_role:
name: Import role to Ansible Galaxy
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Ansible.
run: pip3 install ansible-core==2.17.*
- name: Start import on Ansible Galaxy
run: >
ansible-galaxy role import
--token ${{ secrets.ANSIBLE_GALAXY_API_TOKEN }}
$(echo ${{ github.repository }} | cut -d/ -f1)
$(echo ${{ github.repository }} | cut -d/ -f2)