From d3949c3e7ca8bc40159d226dc97964336aa2e1a0 Mon Sep 17 00:00:00 2001 From: Shiipou Date: Wed, 3 Sep 2025 10:41:56 +0200 Subject: [PATCH 1/2] feat: Add initial-version input to get-version workflow --- .github/workflows/get-version.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/get-version.yml b/.github/workflows/get-version.yml index f24b789..371a3f0 100644 --- a/.github/workflows/get-version.yml +++ b/.github/workflows/get-version.yml @@ -33,6 +33,11 @@ on: description: Force the workflow to generate a version number even if it already exist or didn't match the branches rules. required: false default: false + initial-version: + type: string + description: Set the initial version generated by convco + required: false + default: '1.0.0' outputs: version: description: 'The calculated version' @@ -62,6 +67,8 @@ jobs: - name: Determine version using convco CLI id: get_version + env: + CONVCO_INITIAL_BUMP_VERSION: ${{ inputs.initial-version }} run: | if [[ -n "${{ inputs.path }}" ]]; then echo "Using path: ${{ inputs.path }}" From cdccafbdf349f78ee40ef0cb0c8b24094a882df2 Mon Sep 17 00:00:00 2001 From: Shiipou Date: Wed, 3 Sep 2025 10:48:44 +0200 Subject: [PATCH 2/2] ci: fix syntax error invalid `"` at end of line --- .github/workflows/_check_pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_check_pr.yml b/.github/workflows/_check_pr.yml index 269a149..de39785 100644 --- a/.github/workflows/_check_pr.yml +++ b/.github/workflows/_check_pr.yml @@ -23,7 +23,7 @@ jobs: if [ -n "$IGNORED_FILES" ]; then ignore_rules=' | grep -vE "($IGNORED_FILES)"' fi - files=$(grep -lE "uses: lenra-io/github-actions/*@${branch}" .github/workflows/* ${ignore_rules}") + files=$(grep -lE "uses: lenra-io/github-actions/*@${branch}" .github/workflows/* ${ignore_rules}) if [ -n "$files" ]; then echo "The following files contains an action that uses the @${branch} version instead of @main:" echo "$files"