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 f4b0836 commit a098654
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 @@ -50,8 +50,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

Check failure on line 57 in .github/workflows/molecule.yml

View workflow job for this annotation

GitHub Actions / Test (default)

57:81 [line-length] line too long (106 > 80 characters)

Check failure on line 57 in .github/workflows/molecule.yml

View workflow job for this annotation

GitHub Actions / Test (default)

57:81 [line-length] line too long (106 > 80 characters)
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 a098654

Please sign in to comment.