From 09abba581276cf1189504e2343cefce5206d40e3 Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Fri, 26 May 2023 13:27:36 -0400 Subject: [PATCH 1/2] fix: use github-status-action --- .github/workflows/go.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 8caceae..5232a3a 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -24,11 +24,12 @@ jobs: - name: Test run: go test -v ./... - - - name: Set status - uses: github/set-status-action@v2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - state: ${{ job.status }} - context: Go Compilation - description: ${{ job.status }} + + - name: Run the action # You would run your tests before this using the output to set state/desc + uses: Sibz/github-status-action@v1 + with: + authToken: ${{secrets.GITHUB_TOKEN}} + context: 'Test run' + description: 'Passed' + state: 'success' + sha: ${{github.event.pull_request.head.sha || github.sha}} From 5fee6e8089078dd8753ab851bc83b0c30821130c Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Fri, 26 May 2023 13:30:25 -0400 Subject: [PATCH 2/2] fix: indentation --- .github/workflows/go.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 5232a3a..16c2710 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -26,8 +26,8 @@ jobs: run: go test -v ./... - name: Run the action # You would run your tests before this using the output to set state/desc - uses: Sibz/github-status-action@v1 - with: + uses: Sibz/github-status-action@v1 + with: authToken: ${{secrets.GITHUB_TOKEN}} context: 'Test run' description: 'Passed'