mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Fix coverity yml
This commit is contained in:
21
.github/workflows/coverity_scan.yml
vendored
21
.github/workflows/coverity_scan.yml
vendored
@@ -7,7 +7,6 @@ permissions:
|
||||
|
||||
jobs:
|
||||
coverity_scan:
|
||||
if: github.event_name == 'pull_request'
|
||||
runs-on: ubuntu-latest
|
||||
name: Coverity Scan
|
||||
steps:
|
||||
@@ -35,8 +34,18 @@ jobs:
|
||||
- name: Submit results to Coverity
|
||||
run: |
|
||||
tar czf cov-int.tgz cov-int
|
||||
curl --form token="${{ secrets.COVERITY_TOKEN }}" \
|
||||
--form file=@cov-int.tgz \
|
||||
--form version="GitHub PR #${{ github.event.pull_request.number }}" \
|
||||
--form description="CI run for PR" \
|
||||
https://scan.coverity.com/builds?project=gabime%2Fspdlog
|
||||
response=$(curl --silent --show-error --fail \
|
||||
--form token="${{ secrets.COVERITY_TOKEN }}" \
|
||||
--form file=@cov-int.tgz \
|
||||
--form version="GitHub PR #${{ github.event.pull_request.number }}" \
|
||||
--form description="CI run for PR" \
|
||||
https://scan.coverity.com/builds?project=gabime%2Fspdlog)
|
||||
|
||||
echo "$response"
|
||||
|
||||
if echo "$response" | grep -qi "Build successfully submitted"; then
|
||||
echo "Coverity upload succeeded"
|
||||
else
|
||||
echo "Coverity upload failed or was rejected"
|
||||
exit 1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user