fix: lockfile should not be generated or validate if skip option is true #214
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: LockfilePR | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
check-lockfile: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: run maven-lockfile | |
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | |
uses: chains-project/maven-lockfile@6572b9abec75a66b669cc6d432bdaf0ec25a92e3 # v5.0.0 | |
with: | |
github-token: ${{ secrets.JRELEASER_GITHUB_TOKEN }} | |
include-maven-plugins: true | |
- name: run maven-lockfile (fork/external) | |
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} | |
uses: chains-project/maven-lockfile@6572b9abec75a66b669cc6d432bdaf0ec25a92e3 # v5.0.0 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
include-maven-plugins: true |