Skip to content

Commit ee520de

Browse files
committed
ci: prevented release card creation workflow failure when no references were found
1 parent 2cb51fb commit ee520de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/add-release-card.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
cat > commits.txt <<EOF
6060
${{ steps.commits.outputs.COMMITS }}
6161
EOF
62-
REFS=$(grep -oiP 'ref(?:s)?\s+\Khttps?://\S+' commits.txt | sort -u)
62+
REFS=$(grep -oiP 'ref(?:s)?\s+\Khttps?://\S+' commits.txt | sort -u || true)
6363
6464
if [[ -z "$REFS" ]]; then
6565
echo "No referenced links found."

0 commit comments

Comments
 (0)