Skip to content

Commit 95c5675

Browse files
committed
THX-1138: Debug output.
1 parent f5ff79e commit 95c5675

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ outputs:
2828
previous-version:
2929
description: "Previous Version"
3030
value: ${{ steps.previous-version.outputs.previous-version }}
31+
debug-cmd:
32+
description: "Input Command"
33+
value: ${{ steps.previous-version.outputs.debug-cmd }}
3134
runs:
3235
using: "composite"
3336
steps:
@@ -76,6 +79,17 @@ runs:
7679
echo -e "ERROR: 599 - No feature, enhancement, fix, bugfix, hotfix, or ops branches detected!"
7780
exit 1 || true
7881
fi
82+
- name: Debug Cmd
83+
id: debug-cmd
84+
run: |
85+
cd $GITHUB_WORKSPACE
86+
opt=''
87+
[[ "${{ github.event.inputs.force-re-evaluate }}" == 'true' ]] && opt='$opt -f'
88+
[[ "${{ github.event.inputs.force-patch-increment }}" == 'true' ]] && opt='$opt -p'
89+
[[ "${{ github.event.inputs.mono-repo-product-name }}" != "" ]] && opt='$opt -n ${{ github.event.inputs.mono-repo-product-name }}'
90+
[[ "${{ github.event.inputs.mono-repo-product-path }}" != "" ]] && opt='$opt -d ${{ github.event.inputs.mono-repo-product-path }}'
91+
debug_cmd="echo ${{ github.action_path }}/scripts/detectNewVersion.sh $opt" || true
92+
echo "debug-cmd=$debug_cmd" | tee $GITHUB_OUTPUT
7993
shell: bash
8094

8195
# See github contexts for more like github.action_path.

0 commit comments

Comments
 (0)