From 749c0c249924eeb10679e5754de605050ed6b3de Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Fri, 3 Nov 2023 13:34:50 +1100 Subject: [PATCH] fix: push to INPUTS --- action.yml | 4 ++-- codecov_ats.sh | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 3b513bd..36e7947 100644 --- a/action.yml +++ b/action.yml @@ -55,5 +55,5 @@ runs: run: ./codecov_ats.sh shell: bash env: - CODECOV_TOKEN: ${{ inputs.token }} || ${CODECOV_TOKEN} - CODECOV_STATIC_TOKEN: ${{ inputs.static_token }} || ${CODECOV_STATIC_TOKEN} + INPUTS_CODECOV_TOKEN: ${{ inputs.token }} + INPUTS_CODECOV_STATIC_TOKEN: ${{ inputs.static_token }} diff --git a/codecov_ats.sh b/codecov_ats.sh index 6c9d9d7..64ac196 100755 --- a/codecov_ats.sh +++ b/codecov_ats.sh @@ -6,7 +6,8 @@ echo $CODECOV_TOKEN pip install codecov-cli -codecovcli create-commit -t ${CODECOV_TOKEN} || >&2 echo 'Codecov: Failed to properly create commit' -codecovcli create-report -t ${CODECOV_TOKEN} || >&2 echo 'Codecov: Failed to properly create report' +TOKEN=${$INPUTS_CODECOV_TOKEN || $CODECOV_TOKEN} +codecovcli create-commit -t ${TOKEN} || >&2 echo 'Codecov: Failed to properly create commit' +codecovcli create-report -t ${TOKEN} || >&2 echo 'Codecov: Failed to properly create report' -# codecovcli static-analysis --token=${CODECOV_STATIC_TOKEN} || >&2 echo 'Codecov: Failed to properly execute static analysis' +# codecovcli static-analysis --token=${STATIC_TOKEN} || >&2 echo 'Codecov: Failed to properly execute static analysis'