diff --git a/action.yml b/action.yml index 6ec9d00..64b5c9f 100644 --- a/action.yml +++ b/action.yml @@ -41,9 +41,8 @@ runs: FOSSA_API_KEY: ${{ steps.set_key.outputs.key }} shell: bash run: | - exec &> >(tee -a "analyze_log.txt") + exec &> >(tee -a "analyze_logs.txt") fossa analyze - echo "output=$(cat analyze_log.txt)" >> "$GITHUB_OUTPUT" - if: steps.analyze.outcome == 'failure' name: 'Send error to Sentry on FOSSA scan failure' @@ -67,18 +66,14 @@ runs: FOSSA_API_KEY: ${{ steps.set_key.outputs.key }} shell: bash run: | - exec &> >(tee -a "test_log.txt") + exec &> >(tee -a "test_logs.txt") fossa test - echo "output=$(cat test_log.txt)" >> "$GITHUB_OUTPUT" - name: "Check logs" shell: bash - env: - ANALYZE_OUTPUT: ${{ steps.analyze.outputs.output }} - TEST_OUTPUT: ${{ steps.test.outputs.output }} run: | - echo "$ANALYZE_OUTPUT" - echo "$TEST_OUTPUT" + cat "analyze_logs.txt" + cat "test_logs.txt" - if: github.repository_owner == 'getsentry' && failure() name: 'Handle errors'