From d6c728d7854594ed21f5ae8d3528b087de9b3c33 Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Fri, 3 Jan 2020 18:00:13 +0900 Subject: [PATCH 1/2] set default value of github-token --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index d7d2cc4..8f2c77a 100644 --- a/action.yml +++ b/action.yml @@ -5,6 +5,7 @@ inputs: github-token: description: Coveralls uses this token to verify the posted coverage data on the repo and create a new check based on the results. required: true + default: '${{ github.token }}' path-to-profile: description: a path to your cover profile. required: false From 5d9d4f3e2b266bc66391442b141566375d568e7e Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Fri, 3 Jan 2020 18:06:45 +0900 Subject: [PATCH 2/2] use default github-token in the test --- .github/workflows/test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8af220f..4417606 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,8 +30,7 @@ jobs: - run: npm run build - run: npm test - uses: ./ - with: - github-token: ${{ secrets.GITHUB_TOKEN }} + with: path-to-profile: profile.cov parallel: true job-number: ${{ strategy.job-index }} @@ -52,5 +51,4 @@ jobs: - run: npm run build - uses: ./ with: - github-token: ${{ secrets.GITHUB_TOKEN }} parallel-finished: true