File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ name : List All Statuses
2+
3+ on :
4+ pull_request :
5+ branches : [ "main" ]
6+ workflow_dispatch :
7+
8+ jobs :
9+ list-statuses :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout repository
13+ uses : actions/checkout@v3
14+
15+ - name : List legacy commit statuses (plural endpoint)
16+ run : |
17+ sleep 3m
18+ COMMIT_SHA="${{ github.sha }}"
19+ REPO="${{ github.repository }}"
20+ echo "Fetching legacy statuses for commit: $COMMIT_SHA in $REPO"
21+
22+ curl -s -H "Accept: application/vnd.github.v3+json" \
23+ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
24+ "https://api.github.com/repos/$REPO/commits/$COMMIT_SHA/statuses" | jq .
25+
26+ - name : List combined status (legacy statuses summary)
27+ run : |
28+ COMMIT_SHA="${{ github.sha }}"
You can’t perform that action at this time.
0 commit comments