Skip to content

Commit

Permalink
Merge pull request #31 from AlexAtkinson/feature/mono_repo_safety
Browse files Browse the repository at this point in the history
THX-1138: Debug output.
  • Loading branch information
AlexAtkinson authored Dec 20, 2024
2 parents 4f8891f + 95c5675 commit 1d747e4
Showing 1 changed file with 14 additions and 0 deletions.
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

0 comments on commit 1d747e4

Please sign in to comment.