chore(ci): fix build metadata
Some checks failed
CI / build (push) Failing after 41s

This commit is contained in:
Louis Seubert 2026-10-25 21:36:51 +01:00
commit 0bdf5a3fef
Signed by: louis9902
SSH key fingerprint: SHA256:HkW1JCsONisFW0uQchtmqod/1QUpxsEIxbg7aIquMX0
2 changed files with 4 additions and 2 deletions

View file

@ -151,7 +151,7 @@ runs:
pr_bump=$(calculate_bump "$pr_commits") pr_bump=$(calculate_bump "$pr_commits")
base_bump=$(calculate_bump "$(commits_between "$tag_start" "$base_commit")" 0) base_bump=$(calculate_bump "$(commits_between "$tag_start" "$base_commit")" 0)
bump=$(higher_bump "$base_bump" "$pr_bump") bump=$(higher_bump "$base_bump" "$pr_bump")
version=$(bump_version "$base_version" "$bump")-pr."$pr_number".sha."$head_commit" version=$(bump_version "$base_version" "$bump")-pr."$pr_number"+sha."$head_commit"
label="pr.$pr_number" label="pr.$pr_number"
metadata="sha.$head_commit" metadata="sha.$head_commit"
elif [[ "$event_name" == push && "$ref_name" == [0-9]* || "$ref_name" == [0-9]* ]]; then elif [[ "$event_name" == push && "$ref_name" == [0-9]* || "$ref_name" == [0-9]* ]]; then
@ -163,7 +163,7 @@ runs:
head_commit=$(git rev-parse "$head_sha") head_commit=$(git rev-parse "$head_sha")
commits=$(commits_between "$tag_start" "$head_commit") commits=$(commits_between "$tag_start" "$head_commit")
bump=$(calculate_bump "$commits") bump=$(calculate_bump "$commits")
version=$(bump_version "$base_version" "$bump")-next.sha."$head_commit" version=$(bump_version "$base_version" "$bump")-next+sha."$head_commit"
label=next label=next
metadata="sha.$head_commit" metadata="sha.$head_commit"
fi fi

View file

@ -58,6 +58,8 @@ Builds that are not releases carry metadata identifying their source:
- **Main branch:** `sha.<sha>` - **Main branch:** `sha.<sha>`
The main branch is labelled `next` for the upcoming release. The main branch is labelled `next` for the upcoming release.
The resulting versions use SemVer build metadata, for example:
`0.0.0-next+sha.<sha>`.
## Releases ## Releases