Skip to content

Commit

Permalink
use ome action to publish role
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Jan 15, 2024
1 parent 634edd9 commit 5177323
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,15 @@ jobs:
- test
runs-on: ubuntu-22.04
steps:
- name: galaxy
uses: robertdebock/galaxy-action@1.2.1
- uses: actions/checkout@v4
- name: Read the role name
id: role-name
run: |
name=$(grep 'role_name' meta/main.yml | sed -r 's/^[^:]*:(.*)$/\1/' | tr -d '[:space:]') # noqa
echo "rolename=$name" >> "$GITHUB_OUTPUT"
- name: Publish to Galaxy
uses: ome/action-ansible-galaxy-publish@main
with:
galaxy_api_key: ${{ secrets.GALAXY_API_KEY }}
git_branch: ${{ github.ref_name }}
galaxy-api-key: ${{ secrets.GALAXY_API_KEY }}
galaxy-version: ${{ github.ref_name }}
role-name: ${{ steps.role-name.outputs.rolename }}

0 comments on commit 5177323

Please sign in to comment.