Skip to content

Commit 3120846

Browse files
authored
Create list-status.yaml
1 parent 1ac9ed5 commit 3120846

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/list-status.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
COMMIT_SHA="${{ github.sha }}"
18+
REPO="${{ github.repository }}"
19+
echo "Fetching legacy statuses for commit: $COMMIT_SHA in $REPO"
20+
21+
curl -s -H "Accept: application/vnd.github.v3+json" \
22+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
23+
"https://api.github.com/repos/$REPO/commits/$COMMIT_SHA/statuses" | jq .
24+
25+
- name: List combined status (legacy statuses summary)
26+
run: |
27+
COMMIT_SHA="${{ github.sha }}"

0 commit comments

Comments
 (0)