Skip to content

Commit 654bce2

Browse files
ci: remove explicit status API calls and rely on default GitHub Actions status handling
Co-Authored-By: [email protected] <[email protected]>
1 parent 501c6bb commit 654bce2

File tree

1 file changed

+1
-49
lines changed

1 file changed

+1
-49
lines changed

.github/workflows/docker-build-check.yml

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,9 @@ on:
77

88
jobs:
99
docker-build-check:
10-
name: Docker Build Check
10+
name: SDM Docker Image Build # Renamed job to be more descriptive
1111
runs-on: ubuntu-24.04
12-
permissions:
13-
contents: write # Required for creating commit statuses
14-
pull-requests: read
1512
steps:
16-
# Create initial pending status for build check
17-
- name: Create Pending Build Status
18-
env:
19-
GH_TOKEN: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
20-
run: |
21-
HEAD_SHA="${{ github.event.pull_request.head.sha }}"
22-
gh api \
23-
--method POST \
24-
-H "Accept: application/vnd.github+json" \
25-
-H "X-GitHub-Api-Version: 2022-11-28" \
26-
repos/${{ github.repository }}/statuses/$HEAD_SHA \
27-
-f state="pending" \
28-
-f description="Building SDM Docker image..." \
29-
-f context="SDM Docker Image Build"
30-
3113
- name: Checkout code
3214
uses: actions/checkout@v4
3315
with:
@@ -60,33 +42,3 @@ jobs:
6042
push: false
6143
tags: airbyte/source-declarative-manifest:pr-${{ github.event.pull_request.number }}
6244
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=SDM Docker image for PR ${{ github.event.pull_request.number }}
63-
64-
- name: Update Build Status on Success
65-
if: success()
66-
env:
67-
GH_TOKEN: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
68-
run: |
69-
HEAD_SHA="${{ github.event.pull_request.head.sha }}"
70-
gh api \
71-
--method POST \
72-
-H "Accept: application/vnd.github+json" \
73-
-H "X-GitHub-Api-Version: 2022-11-28" \
74-
repos/${{ github.repository }}/statuses/$HEAD_SHA \
75-
-f state="success" \
76-
-f description="SDM Docker image builds successfully" \
77-
-f context="SDM Docker Image Build"
78-
79-
- name: Update Build Status on Failure
80-
if: failure()
81-
env:
82-
GH_TOKEN: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
83-
run: |
84-
HEAD_SHA="${{ github.event.pull_request.head.sha }}"
85-
gh api \
86-
--method POST \
87-
-H "Accept: application/vnd.github+json" \
88-
-H "X-GitHub-Api-Version: 2022-11-28" \
89-
repos/${{ github.repository }}/statuses/$HEAD_SHA \
90-
-f state="failure" \
91-
-f description="SDM Docker image is broken" \
92-
-f context="SDM Docker Image Build"

0 commit comments

Comments
 (0)