Skip to content

Commit 78321f1

Browse files
Copilotmnkiefer
andauthored
Harden release asset collection
Agent-Logs-Url: https://github.com/githubnext/agentic-ops/sessions/128d36d2-6aa5-436d-a3ce-5885b990f49f Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
1 parent dac05a0 commit 78321f1

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,16 @@ jobs:
4545
env:
4646
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
run: |
48+
set -euo pipefail
49+
mapfile -t assets < <(find workflows -maxdepth 1 -type f \( -name '*.md' -o -name '*.lock.yml' \) | sort)
50+
51+
if [ "${#assets[@]}" -eq 0 ]; then
52+
echo "No workflow assets found in workflows/" >&2
53+
exit 1
54+
fi
55+
4856
gh release create "${{ inputs.tag }}" \
49-
workflows/*.md \
50-
workflows/*.lock.yml \
5157
--target "${{ inputs.target }}" \
5258
--generate-notes \
53-
--latest
59+
--latest \
60+
"${assets[@]}"

0 commit comments

Comments
 (0)