4 Commits

Author SHA1 Message Date
kewl
7affd00193 Update galaxy.yml
version bump
2025-08-22 21:39:16 +01:00
kewl
8e6f0f49bd Update galaxy.yml
revert override
2025-08-22 21:32:00 +01:00
kewl
bb73f524ca Update galaxy.yml
improve version handling
2025-08-22 21:27:58 +01:00
kewl
62193e882c Update galaxy.yml
improve version check
2025-08-22 21:18:17 +01:00
2 changed files with 11 additions and 5 deletions

View File

@@ -18,15 +18,20 @@ jobs:
with:
path: collections/ansible_collections/kewlfft/aur
- name: Debug workflow version
run: echo "=== RUNNING UPDATED WORKFLOW ==="
- name: Verify version in galaxy.yml matches release tag
run: |
tag_version="${GITHUB_REF##*/}" # strip refs/tags/
tag_version="${GITHUB_REF##*/}" # e.g., v0.12.2
tag_version="${tag_version#v}" # strip leading 'v' if present
file_version=$(awk '/^version:/ {print $2}' galaxy.yml)
if [ "$file_version" != "$tag_version" ]; then
if [ "${GITHUB_EVENT_NAME}" != "workflow_dispatch" ] && [ "$file_version" != "$tag_version" ]; then
echo "❌ galaxy.yml version ($file_version) does not match tag ($tag_version)"
exit 1
fi
echo "✅ Version check passed: $file_version"
- name: Build collection
run: |
@@ -47,6 +52,7 @@ jobs:
ls -l "$(dirname "$TARBALL")"
- name: Publish collection
if: github.event_name != 'workflow_dispatch' # skip publish for manual testing
run: |
echo "📤 Publishing $TARBALL ..."
ansible-galaxy collection publish "$TARBALL" \

View File

@@ -8,7 +8,7 @@ namespace: kewlfft
name: aur
# The version of the collection. Must be compatible with semantic versioning
version: 0.12.2
version: 0.13.0
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md