From 4c363876b231622f38f0a9ed41dcc08a492e4147 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Mon, 27 Feb 2023 15:37:35 +0300 Subject: [PATCH] fix: typo --- README.md | 4 ++-- dist/index.js | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 8f5432f6..fb4fb2fd 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ jobs: - name: Coveralls Parallel uses: coverallsapp/github-action@master with: - github-token: ${{ secrets.github_token }} + github-token: ${{ secrets.GITHUB_TOKEN }} flag-name: run ${{ join(matrix.*, ' - ') }} parallel: true @@ -105,7 +105,7 @@ jobs: - name: Coveralls Finished uses: coverallsapp/github-action@master with: - github-token: ${{ secrets.github_token }} + github-token: ${{ secrets.GITHUB_TOKEN }} parallel-finished: true carryforward: "run-1,run-2" ``` diff --git a/dist/index.js b/dist/index.js index 8bb2e987..41f66262 100644 --- a/dist/index.js +++ b/dist/index.js @@ -40836,13 +40836,7 @@ function run() { throw new Error("No Lcov path specified."); } console.log(`Using lcov file: ${pathToLcov}`); - let file; - try { - file = fs_1.default.readFileSync(pathToLcov, 'utf8'); - } - catch (err) { - throw new Error("Lcov file not found."); - } + const file = fs_1.default.readFileSync(pathToLcov, 'utf8'); const basePath = core.getInput('base-path'); const adjustedFile = basePath ? (0, lcov_processor_1.adjustLcovBasePath)(file, basePath) : file; coveralls.handleInput(adjustedFile, (err, body) => {