Skip to content

Commit 0bd90b8

Browse files
committed
feat: versioned workflow
1 parent 6020adf commit 0bd90b8

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/headlamp.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,19 @@ jobs:
123123
124124
cd "$WORKDIR"
125125
126-
TEMPLATE_PKG="$(find . -mindepth 2 -maxdepth 2 -name artifacthub-pkg.yml | sort -V | tail -n1)"
127-
if [ -f artifacthub-pkg.yml ]; then
126+
TEMPLATE_PKG=""
127+
if [ -f artifacthub-pkg.template.yml ]; then
128+
TEMPLATE_PKG="artifacthub-pkg.template.yml"
129+
fi
130+
131+
if [ -z "$TEMPLATE_PKG" ] && [ -f artifacthub-pkg.yml ]; then
128132
TEMPLATE_PKG="artifacthub-pkg.yml"
129133
fi
130134
135+
if [ -z "$TEMPLATE_PKG" ]; then
136+
TEMPLATE_PKG="$(find . -mindepth 2 -maxdepth 2 -name artifacthub-pkg.yml | sort -V | tail -n1)"
137+
fi
138+
131139
test -n "$TEMPLATE_PKG" || {
132140
echo "❌ No artifacthub-pkg.yml template found on artifacthub branch"
133141
exit 1

0 commit comments

Comments
 (0)