1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

feat: replace ansible version with collection version in hcloud user agent (#291)

* feat: use collection version in hcloud user-agent

* chore: add version sync pre-commit hook

* chore: add changelog fragment
This commit is contained in:
Jonas L 2023-08-09 11:34:12 +02:00 committed by GitHub
parent 59fe4339d4
commit dd5ee78386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 3 deletions

7
scripts/version-sync.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Sync the collection version variable based on the version in the galaxy.yml file.
galaxy_version="$(grep '^version:' galaxy.yml | cut -d ' ' -f 2)"
sed --in-place "s|version = .*|version = \"$galaxy_version\"|" plugins/module_utils/version.py