Skip to content

THX-1138: Debug output. #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 20, 2024
Merged
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
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ outputs:
previous-version:
description: "Previous Version"
value: ${{ steps.previous-version.outputs.previous-version }}
debug-cmd:
description: "Input Command"
value: ${{ steps.previous-version.outputs.debug-cmd }}
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -76,6 +79,17 @@ runs:
echo -e "ERROR: 599 - No feature, enhancement, fix, bugfix, hotfix, or ops branches detected!"
exit 1 || true
fi
- name: Debug Cmd
id: debug-cmd
run: |
cd $GITHUB_WORKSPACE
opt=''
[[ "${{ github.event.inputs.force-re-evaluate }}" == 'true' ]] && opt='$opt -f'
[[ "${{ github.event.inputs.force-patch-increment }}" == 'true' ]] && opt='$opt -p'
[[ "${{ github.event.inputs.mono-repo-product-name }}" != "" ]] && opt='$opt -n ${{ github.event.inputs.mono-repo-product-name }}'
[[ "${{ github.event.inputs.mono-repo-product-path }}" != "" ]] && opt='$opt -d ${{ github.event.inputs.mono-repo-product-path }}'
debug_cmd="echo ${{ github.action_path }}/scripts/detectNewVersion.sh $opt" || true
echo "debug-cmd=$debug_cmd" | tee $GITHUB_OUTPUT
shell: bash

# See github contexts for more like github.action_path.
Expand Down
Loading