Skip to content

Commit

Permalink
fix: push to INPUTS
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Nov 3, 2023
1 parent 56846de commit 749c0c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
7 changes: 4 additions & 3 deletions codecov_ats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 749c0c2

Please sign in to comment.