Skip to content

Commit 8c5bc0c

Browse files
authored
chore: verify lockfile on PR, commit on push to main (#877)
1 parent 4c2330c commit 8c5bc0c

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/Lockfile.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Lockfile
22
on:
3-
pull_request:
3+
push:
4+
branches:
5+
- main
46

57
permissions:
68
contents: read

.github/workflows/LockfilePR.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: LockfilePR
2+
on:
3+
pull_request:
4+
5+
permissions:
6+
contents: read
7+
jobs:
8+
check-lockfile:
9+
permissions:
10+
contents: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: run maven-lockfile
14+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
15+
uses: chains-project/maven-lockfile@6572b9abec75a66b669cc6d432bdaf0ec25a92e3 # v5.0.0
16+
with:
17+
github-token: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
18+
include-maven-plugins: true
19+
20+
- name: run maven-lockfile (fork/external)
21+
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
22+
uses: chains-project/maven-lockfile@6572b9abec75a66b669cc6d432bdaf0ec25a92e3 # v5.0.0
23+
with:
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
include-maven-plugins: true

0 commit comments

Comments
 (0)