Skip to content

Commit

Permalink
Merge pull request #156 from michaelrigart/fix-publish
Browse files Browse the repository at this point in the history
fix publish
  • Loading branch information
markgoddard committed Oct 20, 2023
2 parents a683771 + d2b0bae commit 5952622
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish-role.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ name: Publish Ansible Role
- "v?[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:
jobs:
publish_role:
uses: stackhpc/.github/.github/workflows/publish-role.yml@main
secrets:
GALAXY_API_KEY: ${{ secrets.GALAXY_API_KEY }}
galaxy:
runs-on: ubuntu-latest
name: Publish Ansible Role to Ansible Galaxy
steps:
# NOTE: The GitHub namespace is lower case, but the Galaxy namespace is upper case.
# Hard code to the Galaxy namespace.
- name: Publish Role 🚀
run: ansible-galaxy import MichaelRigart $(basename ${{ github.repository }}) --api-key ${{ secrets.GALAXY_API_KEY }} --branch ${{ github.ref_name }}

0 comments on commit 5952622

Please sign in to comment.