Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertdeng123 committed Apr 11, 2023
1 parent 57bc15a commit 3fb62d1
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 3fb62d1

Please sign in to comment.