From 6827e48bf1687947f58842de8e5427a3c00cac22 Mon Sep 17 00:00:00 2001 From: sujiba Date: Thu, 6 Jun 2024 23:52:29 +0200 Subject: [PATCH] fix --- .forgejo/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index f843dd0..456c2f9 100755 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -24,7 +24,7 @@ jobs: counter=$(echo $latest_release | awk -F '.' '//{print $3}') # increase the counter, if the release is from the same year and month - if [ $(date +'%Y') -eq $year ] && [ $(date +'%m') -eq $month ]; then + if [[ $(date +'%Y') == $year ]] && [[ $(date +'%m') == $month ]]; then ((counter++)); # else reset counter else