Skip to content

Commit

Permalink
Merge pull request #14 from codecov/trent/set-codecov-url
Browse files Browse the repository at this point in the history
Set Codecov URL for prod as well
  • Loading branch information
trent-codecov authored Dec 4, 2023
2 parents 22b7a4d + aa1ce69 commit c4fde70
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codecov-startup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
run: |
codecovcli create-commit --fail-on-error
codecovcli create-report --fail-on-error
codecovcli -u ${{ secrets.CODECOV_URL }} create-commit --fail-on-error
codecovcli -u ${{ secrets.CODECOV_URL }} create-report --fail-on-error
- name: Run Startup Staging
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
run: |
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/run-ats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ jobs:
name: Run tests and upload to Codecov
if: inputs.use_action == false
run: |
make test_env.static_analysis CODECOV_STATIC_TOKEN=${{ secrets.STATIC_TOKEN }}
make test_env.label_analysis CODECOV_STATIC_TOKEN=${{ secrets.STATIC_TOKEN }}
make test_env.ats CODECOV_UPLOAD_TOKEN=${{ secrets.CODECOV_ORG_TOKEN }}
make test_env.static_analysis CODECOV_STATIC_TOKEN=${{ secrets.STATIC_TOKEN }} CODECOV_URL=${{ secrets.CODECOV_ATS_URL }}
make test_env.label_analysis CODECOV_STATIC_TOKEN=${{ secrets.STATIC_TOKEN }} CODECOV_URL=${{ secrets.CODECOV_ATS_URL }}
make test_env.ats CODECOV_UPLOAD_TOKEN=${{ secrets.CODECOV_ORG_TOKEN }} CODECOV_URL=${{ secrets.CODECOV_ATS_URL }}
- id: test-upload-action
uses: codecov/codecov-ats-docker@main
if: inputs.use_action
Expand All @@ -101,4 +101,5 @@ jobs:
codecov_token: ${{ secrets.CODECOV_ORG_TOKEN }}
install_cli: ${{ inputs.install_cli }}
run_tests: ${{ inputs.run_tests }}
test_command: ${{ inputs.test_command }}
test_command: ${{ inputs.test_command }}
codecov_url: ${{ secrets.CODECOV_ATS_URL }}
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: upload using codecovcli
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
run: |
make test_env.upload CODECOV_UPLOAD_TOKEN=${{ secrets.CODECOV_ORG_TOKEN }}
make test_env.upload CODECOV_UPLOAD_TOKEN=${{ secrets.CODECOV_ORG_TOKEN }} CODECOV_URL=${{ secrets.CODECOV_URL }}
- name: upload using codecovcli staging
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
run: |
Expand Down

0 comments on commit c4fde70

Please sign in to comment.