From b542d5a35cdb78f4b6ee83df70403b7fa1508ff0 Mon Sep 17 00:00:00 2001 From: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:40:08 -0500 Subject: [PATCH] fix: add action version (#1678) * fix: add action version * fix: use GITHUB_ACTION_PATH * fix: forgot a pipe --- action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.yml b/action.yml index f2fa3ab90..a280db87c 100644 --- a/action.yml +++ b/action.yml @@ -154,6 +154,11 @@ branding: runs: using: "composite" steps: + - name: Action version + shell: bash + run: | + CC_ACTION_VERSION=$(cat ${GITHUB_ACTION_PATH}/src/version | grep 'CODECOV_ACTION_VERSION=' | cut -d\" -f2) + echo -e "\033[0;32m==>\033[0m Running Action version $CC_ACTION_VERSION" - name: Set safe directory if: ${{ inputs.disable_safe_directory != 'true' }} shell: bash