Fixed the bug around naming for the inventory #24
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-to-ansible-galaxy | |
on: | |
release: | |
types: [published] | |
jobs: | |
update-version: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update version | |
run: | | |
echo "Updating version" | |
sed -i "s/version: .*/version: ${{ github.event.release.tag_name }}/g" galaxy.yml | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Update version to ${{ github.event.release.tag_name }}" | |
branch: "main" | |
ansible-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ansible/[email protected] | |
with: | |
api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} | |
api_server: https://galaxy.ansible.com/api/ | |
src_path: . |