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) => {