gam_run counter

This commit is contained in:
Jay Lee
2026-07-04 07:13:12 -04:00
parent 5aac8db0f5
commit a3aa7aeaef

View File

@@ -831,13 +831,15 @@ jobs:
- name: Live API tests - name: Live API tests
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
run: | run: |
GAM_RUN_COUNT=0
run_gam() { run_gam() {
((GAM_RUN_COUNT++))
local allowed_codes="0" local allowed_codes="0"
if [[ "$1" == "-a" ]]; then if [[ "$1" == "-a" ]]; then
allowed_codes="$2" allowed_codes="$2"
shift 2 shift 2
fi fi
echo "::group::Executing: gam $*" echo "::group::Executing: gam $* - (${GAM_RUN_COUNT})"
local exit_code=0 local exit_code=0
$gam "$@" || exit_code=$? $gam "$@" || exit_code=$?
echo "::endgroup::" echo "::endgroup::"