feat: автоопределение обновлений билда в рамках одного релиза
This commit is contained in:
@@ -94,6 +94,8 @@ jobs:
|
||||
files: ./filtered-bin/release/*
|
||||
tag_name: ${{ github.ref_name }}
|
||||
name: ${{ github.ref_name }}
|
||||
target_commitish: ${{ needs.preparation.outputs.commitish }}
|
||||
body: "Commit: ${{ needs.preparation.outputs.commitish }}"
|
||||
draft: false
|
||||
prerelease: false
|
||||
make_latest: true
|
||||
@@ -105,7 +107,11 @@ jobs:
|
||||
files: ./filtered-bin/release/*
|
||||
tag_name: ${{ needs.preparation.outputs.version }}
|
||||
name: ${{ needs.preparation.outputs.version }}
|
||||
target_commitish: ${{ needs.preparation.outputs.commitish }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
make_latest: true
|
||||
body: ${{ inputs.release_notes }}
|
||||
body: |
|
||||
Commit: ${{ needs.preparation.outputs.commitish }}
|
||||
${{ inputs.release_notes }}
|
||||
|
||||
|
||||
@@ -274,8 +274,18 @@ function release_metadata_tsv() {
|
||||
function release_commit_sha() {
|
||||
let release = object_or_empty(read_stdin_json());
|
||||
let sha = as_string(release.target_commitish || "");
|
||||
if (sha != "")
|
||||
if (sha != "" && match(sha, /^[0-9a-fA-F]{7,40}$/) != null) {
|
||||
print(sha, "\n");
|
||||
return;
|
||||
}
|
||||
let body = as_string(release.body || "");
|
||||
if (body != "") {
|
||||
let m = match(body, /(?:[Cc]ommit|[Ss][Hh][Aa]):?\s*([0-9a-fA-F]{7,40})/);
|
||||
if (m && m[1]) {
|
||||
print(m[1], "\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function openwrt_release_value(path, key) {
|
||||
|
||||
Reference in New Issue
Block a user