From 6212238430274c776e54541a8f9aef5f0e850c78 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Mon, 10 Jun 2024 14:33:05 +0200 Subject: [PATCH] Use third party action --- .github/workflows/tests.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 10d25659..a43655d0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -45,18 +45,13 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: Send GitHub status check - uses: actions/github-script@v7 + uses: hkusu/status-create-action@v1 with: - script: | - github.rest.statuses.create({ - owner: context.repo.owner, - repo: context.repo.repo, - sha: context.sha, - context: "code-coverage", - state: "success", - target_url: "https://github.com/hydephp/cli", - description: "Coverage report has been uploaded to Codecov.", - }); + sha: ${{ github.sha }} + state: success + target-url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' + description: 'Code coverage report has been uploaded to Codecov.' + context: 'code-coverage' run-tests: needs: coverage-tests