Allow comments in the list of assets.

This commit is contained in:
Patrick Lehmann
2025-03-01 22:08:28 +01:00
parent a456635686
commit c64e054bcd
2 changed files with 9 additions and 1 deletions

View File

@@ -84,11 +84,16 @@ on:
type: string type: string
required: false required: false
default: '__pyTooling_upload_artifact__.tar' default: '__pyTooling_upload_artifact__.tar'
can-fail:
type: boolean
required: false
default: false
jobs: jobs:
Release: Release:
name: 📝 Update 'Nightly Page' on GitHub name: 📝 Update 'Nightly Page' on GitHub
runs-on: ${{ inputs.ubuntu_image }} runs-on: ${{ inputs.ubuntu_image }}
continue-on-error: ${{ inputs.can-fail }}
permissions: permissions:
contents: write contents: write
actions: write actions: write
@@ -254,7 +259,7 @@ jobs:
# A dictionary to check for duplicate asset files in release # A dictionary to check for duplicate asset files in release
declare -A assetFilenames declare -A assetFilenames
while IFS=$'\r\n' read -r assetLine; do while IFS=$'\r\n' read -r assetLine; do
if [[ "${assetLine}" == "" ]]; then if [[ "${assetLine}" == "" || "${assetLine:0:1}" == "#" ]]; then
continue continue
fi fi

View File

@@ -51,6 +51,7 @@ jobs:
actions: write actions: write
# attestations: write # attestations: write
with: with:
can-fail: true
prerelease: true prerelease: true
replacements: | replacements: |
version=4.2.0 version=4.2.0
@@ -88,6 +89,7 @@ jobs:
actions: write actions: write
# attestations: write # attestations: write
with: with:
can-fail: true
replacements: | replacements: |
version=4.2.0 version=4.2.0
tool=myTool tool=myTool
@@ -105,6 +107,7 @@ jobs:
inventory-version: 4.2.5 inventory-version: 4.2.5
inventory-categories: "kind1,kind2" inventory-categories: "kind1,kind2"
assets: | assets: |
# artifact: file: labels: asset title
document: document1.txt: doc,html: Documentation document: document1.txt: doc,html: Documentation
document: build.log: build,log: Logfile - %tool% - %tool% document: build.log: build,log: Logfile - %tool% - %tool%
other: document1.txt: build,SBOM:SBOM - %version% other: document1.txt: build,SBOM:SBOM - %version%