mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-06-20 00:46:29 +00:00

* Streamline version handling * guard detached add-on * commit version * fix version * Update pipeline * use su-version * Handle core like before * Fix dev * Update supervisor/api/addons.py Co-authored-by: Joakim Sørensen <joasoe@gmail.com> * Cleanup * Fix format * fix import * fix yml issue * fix readme * Update supervisor/api/addons.py Co-authored-by: Joakim Sørensen <joasoe@gmail.com> * Update frontend * Address comments Co-authored-by: Joakim Sørensen <joasoe@gmail.com> Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
11 lines
310 B
Bash
Executable File
11 lines
310 B
Bash
Executable File
#!/bin/bash
|
|
set -eE
|
|
|
|
commit_count="$(git rev-list --count --since=yesterday HEAD)"
|
|
calver_date="$(date "+%Y.%m.dev%d")"
|
|
|
|
calver_version="${setup_version}.dev${calver_date}${commit_count}"
|
|
|
|
sed -i "s/SUPERVISOR_VERSION .*/SUPERVISOR_VERSION = \"${calver_version}\"/g" supervisor/const.py
|
|
echo "$calver_version"
|