Merge pull request #3 from CodethinkLabs/scott/metrics-prefix #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 | tr '[:upper:]' '[:lower:]') | |
$(echo ${{ github.repository }} | cut -d/ -f2) |