Skip to content

ci: change action for push to galaxy #12

ci: change action for push to galaxy

ci: change action for push to galaxy #12

Workflow file for this run

---
name: Publish Ansible role to Galaxy
on:
workflow_call:
workflow_dispatch:
push:
tags:
- 'v*.*.*'
jobs:
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 5
environment: Galaxy
steps:
- uses: actions/checkout@v4
- name: Show tags
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- name: Publish Ansible role to Galaxy
uses: robertdebock/galaxy-action@1.2.1
with:
galaxy_api_key: ${{ secrets.ANSIBLE_GALAXY_TOKEN }}
git_branch: ${{ github.ref }}