Skip to content

Commit 23c6dde

Browse files
authored
Merge pull request #86 from SentryMan/workflow
Reproducible build and dependabot automerge
2 parents d88e167 + 2c7eb79 commit 23c6dde

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
java_version: [11]
16+
java_version: [11, 17, 21]
1717
os: [ubuntu-latest]
1818

1919
steps:
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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@v2
16+
with:
17+
github-token: "${{ secrets.GITHUB_TOKEN }}"
18+
- name: Approve a PR
19+
run: gh pr review --approve "$PR_URL"
20+
env:
21+
PR_URL: ${{github.event.pull_request.html_url}}
22+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
23+
# Enable for automerge
24+
- name: Enable auto-merge for Dependabot PRs
25+
run: gh pr merge --auto --squash "$PR_URL"
26+
env:
27+
PR_URL: ${{github.event.pull_request.html_url}}
28+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
<properties>
2424
<nexus.staging.autoReleaseAfterClose>true</nexus.staging.autoReleaseAfterClose>
25+
<project.build.outputTimestamp>2025-02-26T05:43:52Z</project.build.outputTimestamp>
2526
</properties>
2627

2728
<modules>
@@ -32,4 +33,3 @@
3233
</modules>
3334

3435
</project>
35-

0 commit comments

Comments
 (0)