Skip to content

Commit

Permalink
Update workflows (#2435)
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-codecov authored Dec 4, 2023
1 parent 3e7e57a commit b4f5ea3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
codecovstartup:
name: Codecov Startup
needs: install
uses: codecov/gha-workflows/.github/workflows/[email protected].0
uses: codecov/gha-workflows/.github/workflows/[email protected].12
secrets: inherit

runner-indexes:
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
- name: Upload to Production
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
run: |
codecovcli do-upload -t ${{ secrets.CODECOV_ORG_TOKEN }} --fail-on-error
codecovcli -u ${{ secrets.CODECOV_URL }} do-upload -t ${{ secrets.CODECOV_ORG_TOKEN }} --fail-on-error
- name: Upload to Staging
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
Expand Down Expand Up @@ -292,7 +292,7 @@ jobs:
name: Build Self Hosted Image
secrets: inherit
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/[email protected].0
uses: codecov/gha-workflows/.github/workflows/[email protected].12
with:
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-frontend' }}
cache_requirements: false
Expand All @@ -302,7 +302,7 @@ jobs:
needs: [ build-self-hosted, test ]
secrets: inherit
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/[email protected].0
uses: codecov/gha-workflows/.github/workflows/[email protected].12
with:
push_rolling: true
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-frontend' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/self-hosted-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ on:
jobs:
create-release-pr:
name: Create PR for Release ${{ github.event.inputs.versionName }}
uses: codecov/gha-workflows/.github/workflows/[email protected].0
uses: codecov/gha-workflows/.github/workflows/[email protected].12
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/self-hosted-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
create-release:
name: Tag Release ${{ github.head_ref }} and Push Docker image to Docker Hub
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/[email protected].0
uses: codecov/gha-workflows/.github/workflows/[email protected].12
with:
tag_to_prepend: self-hosted-
secrets: inherit

push-image:
needs: [create-release]
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/[email protected].0
uses: codecov/gha-workflows/.github/workflows/[email protected].12
secrets: inherit
with:
push_release: true
Expand Down

0 comments on commit b4f5ea3

Please sign in to comment.