message: only run coverage report for main branch
diff: @@ -23,8 +23,10 @@ jobs:
  if: ${{ github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'run-tests' }}
  run: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} deno test --unstable --coverage=coverage --allow-net tests/mod.ts
  - name: Create coverage report
  + if: github.ref == 'refs/heads/main'
  run: deno --unstable coverage ./coverage --lcov > coverage.lcov
  - name: Collect and upload the coverage report
  + if: github.ref == 'refs/heads/main'
  uses: codecov/codecov-action@v1.0.10
  with:
  file: ./coverage.lcov
  