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" 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 }}"