-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.28 KB
/
update-dependency-checksums.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: UpdateChecksums
on:
workflow_dispatch:
permissions: read-all
jobs:
build:
name: Dependency checksum compaction action
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
token: ${{ secrets.PUBLISH_KEY }}
- name: Set up JDK 17
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
distribution: temurin
java-version: 17
- name: Remove previous version
run: cp gradle/verification-metadata-clean.xml gradle/verification-metadata.xml
- name: Set up Gradle
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
with:
cache-disabled: true
- name: Update checksums
run: ./gradlew clean file-barj-job:checkstyleMain licensee --write-verification-metadata sha256
- name: Git commit
run: |
git config --global user.name 'Esta Nagy'
git config --global user.email '[email protected]'
git add gradle/verification-metadata.xml
git commit -asm "Pinning dependency checksums {patch}"
git push -f --set-upstream origin ${{ github.ref_name }}