Skip to content

Commit

Permalink
fix: set var outside the script
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Nov 3, 2023
1 parent a573906 commit abd89b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ runs:
using: "composite"
steps:
- id: codecov-ats
run: ./codecov_ats.sh
run: |
commands=$(./codecov_ats.sh | tail -1)
echo "CODECOV_ATS_TESTS=$commands" >> "$GITHUB_OUTPUT"
shell: bash
env:
INPUTS_CODECOV_TOKEN: ${{ inputs.token }}
INPUTS_CODECOV_STATIC_TOKEN: ${{ inputs.static_token }}
INPUTS_VERBOSE: ${{ inputs.verbose }}
GITHUB_OUTPUT: $GITHUB_OUTPUT
2 changes: 1 addition & 1 deletion codecov_ats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ ats_tests_to_skip=$(echo $response | sed 's/^.*ats_tests_to_skip\": \[//' | sed
test_commands=$runner_options
test_commands+=$ats_tests_to_run

echo "CODECOV_ATS_TESTS=$test_commands" >> "$GITHUB_OUTPUT"
echo $test_commands

0 comments on commit abd89b3

Please sign in to comment.