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:
parent
59fe4339d4
commit
dd5ee78386
6 changed files with 22 additions and 3 deletions
7
scripts/version-sync.sh
Executable file
7
scripts/version-sync.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue