From 116a6a9bb6fbdd6e023a4d367cebca58d9bbe149 Mon Sep 17 00:00:00 2001 From: cesine Date: Wed, 27 Nov 2024 10:35:38 -0500 Subject: [PATCH] only report to coveralls on main --- .github/workflows/ci.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 55004198..4bacb8ed 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -39,10 +39,7 @@ jobs: - name: Run tests run: npm run coverage - - - name: Run Coveralls - run: npm run coveralls - + - name: Check for changed dist files run: | git fetch origin main --depth=1 @@ -53,4 +50,8 @@ jobs: echo -e "\033[31mChanged files:" echo "$DIST_CHANGED" exit 1 - fi \ No newline at end of file + fi + + - name: Run Coveralls + run: npm run coveralls + if: github.event_name == 'push' && github.ref == 'refs/heads/main'