Skip to content

Commit e11510f

Browse files
committed
ci: potential fix
1 parent 3c507c6 commit e11510f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,14 @@ jobs:
3535
- name: Run unit tests
3636
run: yarn test:cov
3737

38-
- name: Backup .yarnrc.yml
38+
- name: Make .yarnrc.yml untracked before badge update
3939
run: |
40-
cp .yarnrc.yml .yarnrc.yml.bak
41-
git checkout -- .yarnrc.yml || true
40+
git rm --cached .yarnrc.yml
41+
git update-index --assume-unchanged .yarnrc.yml
4242
4343
- name: Update Coverage Badge
4444
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
4545
uses: we-cli/coverage-badge-action@main
46-
47-
- name: Restore .yarnrc.yml
48-
run: |
49-
cp .yarnrc.yml.bak .yarnrc.yml
50-
rm .yarnrc.yml.bak
5146

5247
build-library:
5348
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)