From e5f50849316f5dc0b045ac696c3628e610bae695 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Sun, 29 Jun 2025 13:49:10 +0200 Subject: [PATCH] feat(action): integrate gha-timer for step timing - Adds gha-timer to measure and log execution time for steps - Improves visibility into step outcomes with success/failure logging - Enhances debugging and performance analysis capability --- action.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/action.yml b/action.yml index eb764cc..ceb2599 100644 --- a/action.yml +++ b/action.yml @@ -18,6 +18,8 @@ inputs: runs: using: "composite" steps: + - uses: fulcrumgenomics/gha-timer@v1 + - name: Detect version change shell: bash id: detect @@ -26,7 +28,17 @@ runs: GITHUB_SHA: ${{ github.sha || '' }} GITHUB_REF: ${{ github.ref || '' }} run: | + gha-timer start --name "Detect Version Change" + ${{ github.action_path }}/scripts/detect-version-change.sh + exit_code=$? + + if [[ $exit_code -eq 0 ]]; then + gha-timer elapsed --outcome success --name "Detect Version Change" + else + gha-timer elapsed --outcome failure --name "Detect Version Change" + exit $exit_code + fi - name: Read CLIFF_VERSION shell: bash