mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
dd5ee78386
* feat: use collection version in hcloud user-agent * chore: add version sync pre-commit hook * chore: add changelog fragment
7 lines
268 B
Bash
Executable file
7 lines
268 B
Bash
Executable file
#!/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
|