Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/_check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/get-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 }}"
Expand Down
Loading