ci: change action for push to galaxy #12
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: 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 }} |