Skip to content

⚡️ IMPROVE: update github action #5

⚡️ IMPROVE: update github action

⚡️ IMPROVE: update github action #5

Workflow file for this run

---
name: Publish on Ansible Galaxy
on:
push:
tags:
- "*"
jobs:
publish:
name: Publish on Ansible Galaxy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get the version name from the tags
run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Release Ansible Role to Galaxy
uses: artis3n/ansible_galaxy_collection@v2
with:
api_key: '${{ secrets.GALAXY_API_KEY }}'
galaxy_version: '${{ env.RELEASE_VERSION }}'