Skip to content

Commit 09335d7

Browse files
ci: fix cron schedule for devel runners
- VPP scheduled cron job only picks stable version name. - Treat HEAD as "release" only if a release tag (YY.MM.0) points at it. Signed-off-by: Nagendra T P <nagendraputhane@gmail.com>
1 parent b1ad238 commit 09335d7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build-cn10k.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ jobs:
3939
run: |
4040
mkdir -p "${PWD}/artifacts"
4141
git tag --points-at HEAD > /tmp/tags
42-
[ -s /tmp/tags ] && PKG_POSTFIX= || PKG_POSTFIX=-devel
43-
[ -s /tmp/tags ] && NIGHTLY=false || NIGHTLY=true
42+
# Treat HEAD as "release" only if a release tag (YY.MM.0) points at it.
43+
if git tag --points-at HEAD --list '[0-9][0-9].[0-9][0-9].0' | grep -q .; then
44+
PKG_POSTFIX=
45+
NIGHTLY=false
46+
else
47+
PKG_POSTFIX=-devel
48+
NIGHTLY=true
49+
fi
4450
echo "PKG_VERSION_NAME=`./src/scripts/version | awk -F '-' '{print $1}'`" >> "${PWD}/artifacts/env"
4551
echo "MRVL_PKG_VERSION=`cat MRVL_VERSION`" >> "${PWD}/artifacts/env"
4652
echo "CPT_PKG_VERSION=`cat DEP_PKG_VERSION | grep CPT_PKG_VERSION | awk -F'=' '{print $2}'`" >> "${PWD}/artifacts/env"

0 commit comments

Comments
 (0)