Skip to content

Release v1.10.1

Release v1.10.1 #19

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
publish:
name: Publish collection to Ansible Galaxy
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
ref: ${{ github.head_ref }}
- name: Get the version name from the tags
run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Change collection version to match tag
run: |
sed -Ei "s/^version: .*/version: ${{ env.RELEASE_VERSION }}/" galaxy.yml
- name: Commit galaxy.yml
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
with:
branch: main
commit_message: "Update galaxy.yml for ${{ env.RELEASE_VERSION }}"
file_pattern: galaxy.yml
- name: Publish collection
uses: docker://ghcr.io/artis3n/ansible_galaxy_collection:v2.10.1@sha256:512e8de7c7bb22e53ceadef302a2b181045895fa468540761d4ab1e7247ba68c
with:
api_key: '${{ secrets.ANSIBLE_GALAXY_API_KEY }}'
galaxy_version: '${{ env.RELEASE_VERSION }}'