Skip to content

Commit

Permalink
Merge pull request #123 from noisy/empty-5
Browse files Browse the repository at this point in the history
Testing cypress tests on demand, 3
  • Loading branch information
noisy committed Apr 18, 2023
2 parents 5ba5f6f + 68c080c commit 0211ddf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ jobs:
started_at: ${{ github.event.workflow_run.created_at }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RESPONSE=$(echo ${{ steps.request-check-run.outputs.data }})
CHECK_RUN_ID=$(echo $RESPONSE | jq -r .id)
echo "CHECK_RUN_ID=$CHECK_RUN_ID" >> $GITHUB_ENV
- name: reinstall ca-certificates
# Fix for https://github.com/noisy/portfolio/actions/runs/4708656910/jobs/8351231323
Expand Down Expand Up @@ -113,7 +117,7 @@ jobs:
route: PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}
owner: ${{ github.event.repository.owner.login }}
repo: ${{ github.event.repository.name }}
check_run_id: ${{ steps.request-check-run.outputs.data.id }}
check_run_id: ${{ env.CHECK_RUN_ID }} # Use the environment variable set in the previous step
status: completed
conclusion: ${{ job.status == 'success' && 'success' || 'failure' }}
completed_at: ${{ github.event.workflow_run.updated_at }}
Expand Down

0 comments on commit 0211ddf

Please sign in to comment.