Skip to content

Commit

Permalink
ci: Fix status
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Sep 6, 2024
1 parent 254cbc4 commit b2a8318
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,14 @@ jobs:
run: |
# Check status of this workflow
state="pending"
sha=${{ steps.commit.outputs.sha }}
html_url=${{ github.event.workflow_run.html_url }}
description=${{ github.event.workflow_run.name }}
sha=${{ github.sha }}
html_url=$(gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
repos/${{ github.repository }}/actions/runs/${{ github.run_id }} | jq -r .html_url)
description="${{ github.workflow }} / ${{ github.job }}"
gh api \
--method POST \
Expand Down Expand Up @@ -163,8 +168,13 @@ jobs:
state="failure"
fi
sha=${{ steps.commit.outputs.sha }}
html_url=${{ github.event.workflow_run.html_url }}
description=${{ github.event.workflow_run.name }}
html_url=$(gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
repos/${{ github.repository }}/actions/runs/${{ github.run_id }} | jq -r .html_url)
description="${{ github.workflow }} / ${{ github.job }}"
gh api \
--method POST \
Expand Down

0 comments on commit b2a8318

Please sign in to comment.