Skip to content

Commit adacf96

Browse files
authored
Merge branch 'main' into dependabot/github_actions/actions/checkout-7.0.0
2 parents f5f5f60 + bbf558d commit adacf96

3 files changed

Lines changed: 64 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
12+
13+
- name: Set up JDK 17
14+
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
15+
with:
16+
java-version: '17'
17+
distribution: 'temurin'
18+
cache: maven
19+
20+
- name: Build and test with Maven
21+
run: mvn -B verify --file pom.xml
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Dependabot auto-merge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.actor == 'dependabot[bot]' }}
12+
steps:
13+
- name: Dependabot metadata
14+
id: metadata
15+
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3
16+
with:
17+
github-token: "${{ secrets.GITHUB_TOKEN }}"
18+
skip-commit-verification: true
19+
20+
- name: Checkout repository
21+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
22+
23+
- name: Approve a PR if not already approved
24+
run: |
25+
gh pr checkout "$PR_URL"
26+
if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ];
27+
then
28+
gh pr review --approve "$PR_URL"
29+
else
30+
echo "PR already approved.";
31+
fi
32+
env:
33+
PR_URL: ${{github.event.pull_request.html_url}}
34+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
35+
36+
- name: Enable auto-merge for Dependabot PRs
37+
run: gh pr merge --auto --squash "$PR_URL"
38+
env:
39+
PR_URL: ${{github.event.pull_request.html_url}}
40+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<maven.compiler.source>17</maven.compiler.source>
1313
<maven.compiler.target>17</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15-
<kafkaconnect.version>4.2.0</kafkaconnect.version>
15+
<kafkaconnect.version>4.3.1</kafkaconnect.version>
1616
</properties>
1717

1818
<dependencies>
@@ -30,13 +30,13 @@
3030
<dependency>
3131
<groupId>junit</groupId>
3232
<artifactId>junit</artifactId>
33-
<version>4.13.1</version>
33+
<version>4.13.2</version>
3434
<scope>test</scope>
3535
</dependency>
3636
<dependency>
3737
<groupId>tools.jackson.core</groupId>
3838
<artifactId>jackson-core</artifactId>
39-
<version>3.1.3</version>
39+
<version>3.2.1</version>
4040
<scope>compile</scope>
4141
</dependency>
4242
<dependency>

0 commit comments

Comments
 (0)