Skip to content

Commit

Permalink
Merge pull request astarte-platform#11 from joshuachp/fix/ci
Browse files Browse the repository at this point in the history
chore(ci): reorder checkout to prevent cleanup
  • Loading branch information
harlem88 authored Aug 20, 2024
2 parents 08baefa + eb6806e commit 2e4db49
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@ jobs:
# Run only if originated from a PR
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Download coverage artifact
uses: actions/download-artifact@v4
- uses: actions/checkout@v4
with:
name: coverage
github-token: ${{ github.token }}
run-id: ${{ github.event.workflow_run.id }}
- name: Get PR number
run: |
echo "PR_NUMBER=$(cat ./pr_number)" >> "$GITHUB_ENV"
ref: ${{ github.event.workflow_run.head_sha }}
# Checkout codecov.yaml config from master
- uses: actions/checkout@v4
with:
path: master
sparse-checkout: |
.github/codecov.yaml
sparse-checkout-cone-mode: false
- uses: actions/checkout@v4
- name: Download coverage artifact
uses: actions/download-artifact@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
name: coverage
github-token: ${{ github.token }}
run-id: ${{ github.event.workflow_run.id }}
- name: Get PR number
run: |
echo "PR_NUMBER=$(cat ./pr_number)" >> "$GITHUB_ENV"
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
with:
Expand Down

0 comments on commit 2e4db49

Please sign in to comment.