Skip to content

Commit

Permalink
Merge pull request #15 from adfinis/fix/ci_galaxy_version
Browse files Browse the repository at this point in the history
Fix/ci galaxy version
  • Loading branch information
adf-patrickha authored Jul 24, 2024
2 parents 069764d + dc33d4d commit a7f36c2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/collection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@

name: Build and deploy Collection on Ansible Galaxy
on:
push:
branches:
- main
release:
types:
- published
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:

- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: 'true'

- name: Set version in galaxy.yml
run: |
VERSION=${GITHUB_REF#refs/tags/v}
sed -re "s/^version:.*$/version: ${VERSION}/" -i galaxy.yml
- name: Upload collection to Ansible Galaxy
uses: ansible/[email protected]
with:
Expand Down

0 comments on commit a7f36c2

Please sign in to comment.