Skip to content

Commit

Permalink
workflow file updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Eva Marques committed Jun 17, 2024
1 parent b8d5548 commit e4297c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test-coverage-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
shell: bash
run: |
cov_patch="${{ steps.get-values.outputs.coverage }}"
if ! test -f cov_current.Rout; then echo "0" > cov_current.Rout
cov_current=$(cat cov_current.Rout)
echo "Current coverage: $cov_current"
Expand Down Expand Up @@ -89,19 +90,19 @@ jobs:
COLOR=$(node -p '+process.env.COV >= 95 ? `green` : `orange`')
mkdir -p badges
badgen -j coverage -s $COV% -c $COLOR > badges/coverage.svg
- name: Deploy Badges
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Update badges [skip ci] & cov_current.Rout"
branch: gh-pages
skip_fetch: true
skip_checkout: true

# Without this, will get Error:
# Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/work/coverage-badge-action/coverage-badge-action/action.yml'.
# Did you forget to run actions/checkout before running your local action?
- name: Checkout Back
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
ref: ${{ github.ref }}

0 comments on commit e4297c1

Please sign in to comment.