Skip to content

Commit

Permalink
ci: fix publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
antmelekhin committed Mar 10, 2024
1 parent 860d44b commit ea64756
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@ jobs:
- name: 'Checkout the codebase'
uses: actions/checkout@v3

- name: 'Publish to Ansible Galaxy'
uses: robertdebock/galaxy-action@1.2.0
- name: 'Set up Python 3.'
uses: actions/setup-python@v2
with:
galaxy_api_key: ${{ secrets.GALAXY_API_KEY }}
git_branch: main
python-version: '3.x'

- name: 'Install ansible-core package.'
run: pip3 install ansible-core

- name: 'Publish the role to the Ansible Galaxy'
run: >-
ansible-galaxy role import \
--api-key ${{ secrets.GALAXY_API_KEY }} \
--role-name microsoft_repository \
$(echo $GITHUB_REPOSITORY | cut -d/ -f1) $(echo $GITHUB_REPOSITORY | cut -d/ -f2)

0 comments on commit ea64756

Please sign in to comment.