Skip to content

Commit

Permalink
Configure conclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusLongmuir committed Dec 1, 2023
1 parent edd76f6 commit 03ce9dd
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ jobs:
env:
PR_PATH: pull/${{github.event.number}}
steps:
- name: Add In Progress Preview Status PR Check
if: github.ref != 'refs/heads/main'
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/check-runs \
-d '{"name":"PR Preview", "head_sha":"${{github.sha}}", "status": "in_progress"}'
- name: Set domain
run: echo "DOMAIN=${{ github.repository_owner }}.github.io" >> $GITHUB_ENV

Expand Down Expand Up @@ -73,4 +63,4 @@ jobs:
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/check-runs \
-d '{"name":"PR Preview", "head_sha":"${{github.sha}}", "status": "completed", "details_url": "${{ env.BASE_URL }}"}'
-d '{"name":"PR Preview", "head_sha":"${{github.sha}}", "conclusion":"success", "details_url": "${{ env.BASE_URL }}"}'

0 comments on commit 03ce9dd

Please sign in to comment.