Skip to content

Commit

Permalink
Maybe fixes env vars (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrongestNumber9 authored Dec 10, 2024
1 parent 700070a commit ba702b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
run: curl -X POST -d version="${{ env.RELEASE_VERSION }}" -d description="automated upload" -d email=${{ secrets.COVERITY_EMAIL }} -d token=${{ secrets.COVERITY_TOKEN }} -d file_name="${{ vars.COVERITY_PROJECT_URL_NAME }}.tgz" https://scan.coverity.com/projects/${{ vars.COVERITY_PROJECT_URL_ID }}/builds/init -o response

- name: Prepare response url
run: echo "RESPONSE_URL=$(jq -r '.url' response)" >> $GITHUB_ENV
run: echo "RESPONSE_URL=\"$(jq -r '.url' response)\"" >> $GITHUB_ENV

- name: Upload to Coverity
run: |
Expand All @@ -102,10 +102,10 @@ jobs:
"${{ env.RESPONSE_URL }}"
- name: Prepare build id
run: echo "BUILD_ID=$(jq -r '.build_id' response)" >> $GITHUB_ENV
run: echo "COVERITY_BUILD_ID=\"$(jq -r '.build_id' response)\"" >> $GITHUB_ENV

- name: Trigger Coverity build
run: |
curl -X PUT \
-d token${{ secrets.COVERITY_TOKEN }} \
"https://scan.coverity.com/projects/${{ vars.COVERITY_PROJECT_URL_ID }}/builds/${{ env.BUILD_ID }}/enqueue"
"https://scan.coverity.com/projects/${{ vars.COVERITY_PROJECT_URL_ID }}/builds/${{ env.COVERITY_BUILD_ID }}/enqueue"

0 comments on commit ba702b0

Please sign in to comment.