Skip to content

Commit c79a65d

Browse files
authored
Merge pull request #29 from AlexAtkinson/feature/mono_repo_safety
THX-1138: Action Input
2 parents 0ba0636 + 7038754 commit c79a65d

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

action.yml

+4-12
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,10 @@ runs:
4949
run: |
5050
cd $GITHUB_WORKSPACE
5151
opt=''
52-
[[ "${{ inputs.force-re-evaluate }}" == 'true' ]] && opt='$opt -f'
53-
[[ "${{ inputs.force-re-evaluate }}" == 'true' ]] && echo "DEBUG 01: ${{ inputs.force-re-evaluate }}"
54-
echo "DEBUG 01x: ${{ inputs.force-re-evaluate }}"
55-
[[ "${{ inputs.force-patch-increment }}" == 'true' ]] && opt='$opt -p'
56-
[[ "${{ inputs.force-patch-increment }}" == 'true' ]] && echo "DEBUG 02: ${{ inputs.force-patch-increment }}"
57-
echo "DEBUG 02x: ${{ inputs.force-patch-increment }}"
58-
[[ "${{ inputs.mono-repo-product-name }}" != "" ]] && opt='$opt -n ${{ inputs.mono-repo-product-name }}'
59-
[[ "${{ inputs.mono-repo-product-name }}" != "" ]] && echo "DEBUG 03: ${{ inputs.mono-repo-product-name }}"
60-
echo "DEBUG 03x: ${{ inputs.mono-repo-product-name }}"
61-
[[ "${{ inputs.mono-repo-product-path }}" != "" ]] && opt='$opt -d ${{ inputs.mono-repo-product-path }}'
62-
[[ "${{ inputs.mono-repo-product-path }}" != "" ]] && echo "DEBUG 04: ${{ inputs.mono-repo-product-path }}"
63-
echo "DEBUG 04x: ${{ inputs.mono-repo-product-path }}"
52+
[[ "${{ github.event.inputs.force-re-evaluate }}" == 'true' ]] && opt='$opt -f'
53+
[[ "${{ github.event.inputs.force-patch-increment }}" == 'true' ]] && opt='$opt -p'
54+
[[ "${{ github.event.inputs.mono-repo-product-name }}" != "" ]] && opt='$opt -n ${{ github.event.inputs.mono-repo-product-name }}'
55+
[[ "${{ github.event.inputs.mono-repo-product-path }}" != "" ]] && opt='$opt -d ${{ github.event.inputs.mono-repo-product-path }}'
6456
new_version="$(${{ github.action_path }}/scripts/detectNewVersion.sh $opt)" || true
6557
echo "new-version=$new_version" | tee $GITHUB_OUTPUT
6658
if [[ "$new_version" =~ "520" ]]; then

0 commit comments

Comments
 (0)