Skip to content

Commit 196da58

Browse files
cloneotclaude
andcommitted
Add GitHub Actions workflow to build patched postgres connector JAR
Builds the postgres pipeline connector and publishes it as a GitHub Release artifact (v3.5.0-patched) on push to patch/** branches. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3984683 commit 196da58

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build Patched JAR
2+
3+
on:
4+
push:
5+
branches:
6+
- 'patch/**'
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up JDK 8
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: '8'
21+
distribution: 'temurin'
22+
cache: maven
23+
24+
- name: Build postgres connector
25+
run: |
26+
mvn -pl flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-postgres \
27+
-am package -DskipTests -q
28+
29+
- name: Find built JAR
30+
id: jar
31+
run: |
32+
JAR=$(find flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-postgres/target \
33+
-name 'flink-cdc-pipeline-connector-postgres-*.jar' \
34+
! -name '*-sources.jar' ! -name '*-tests.jar' ! -name '*original*' \
35+
| head -1)
36+
echo "path=$JAR" >> "$GITHUB_OUTPUT"
37+
echo "name=$(basename $JAR)" >> "$GITHUB_OUTPUT"
38+
39+
- name: Create or update release
40+
env:
41+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
run: |
43+
TAG="v3.5.0-patched"
44+
gh release delete "$TAG" --yes 2>/dev/null || true
45+
gh release create "$TAG" \
46+
--title "v3.5.0-patched" \
47+
--notes "Patched flink-cdc-pipeline-connector-postgres with TIMESTAMPTZ fix (FLINK-38742)" \
48+
--target "${{ github.sha }}" \
49+
"${{ steps.jar.outputs.path }}"

0 commit comments

Comments
 (0)