From 0c4ebd1e559dc12472d53e2df4187af95660ec75 Mon Sep 17 00:00:00 2001 From: Daniel Atanasovski Date: Wed, 20 Mar 2024 15:39:13 +1100 Subject: [PATCH] fix: strip leading 0 in date command for CI workflow --- .github/workflows/test-and-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 95e4963..a8758fa 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -65,7 +65,7 @@ jobs: - name: Check increment result shell: bash - run: '[[ "$(date +%Y.%m)" == "$(echo "${{ steps.version-increment.outputs.VERSION }}" | cut -d "." -f 1-2)" ]]' + run: '[[ "$(date +%Y.%-m)" == "$(echo "${{ steps.version-increment.outputs.VERSION }}" | cut -d "." -f 1-2)" ]]' test-action-yml: # integration testing needs: