Skip to content

Commit bcddb95

Browse files
committed
clean up action a bit
1 parent c8b80ad commit bcddb95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ runs:
6666
SENTRY_ORG: self-hosted
6767
SENTRY_DSN: https://[email protected]/4
6868
run: |
69-
curl -sL https://sentry.io/get-cli/ | sh
7069
if [[ ${{ steps.analyze.outcome }} == 'failure' ]]; then
70+
curl -sL https://sentry.io/get-cli/ | sh
7171
# Environment variables will automatically be sent, so we just want some minimal information
7272
sentry-cli send-event -m "FOSSA scan failure" -t repo:$GITHUB_REPOSITORY -e url:$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID --logfile analyze_logs.txt
7373
exit 0
@@ -81,5 +81,5 @@ runs:
8181
echo "🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 "
8282
exit 1
8383
fi
84+
curl -sL https://sentry.io/get-cli/ | sh
8485
sentry-cli send-event -m "FOSSA test failure" -t repo:$GITHUB_REPOSITORY -e url:$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID --logfile test_logs.txt
85-
exit 0

0 commit comments

Comments
 (0)