Skip to content

Commit

Permalink
alternative debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronosMasterOfAllTime committed Dec 19, 2024
1 parent 3af9a2f commit 6d05164
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ jobs:
- name: Update App Version
run: |
echo "Doing it as: $GITHUB_ACTOR"
./scripts/update_app_version.sh
if [[ ${{ github.event.inputs.debug }} == true ]]; then
echo "Debug mode enabled"
./scripts/update_app_version.sh > debug.log 2>&1 | tee -a debug.log
else
./scripts/update_app_version.sh
fi
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
DEBUG: ${{ github.event.inputs.debug }}
2 changes: 1 addition & 1 deletion scripts/update_app_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [[ DEBUG == "true" ]]; then
echo "DEBUG is enabled"
set -x # Print commands and their arguments as they are executed
# set -x # Print commands and their arguments as they are executed
fi

# This script is used to update the version of the app.
Expand Down

0 comments on commit 6d05164

Please sign in to comment.