UpdateChecksums #460
Workflow file for this run
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: 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@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Remove previous version | |
run: cp gradle/verification-metadata-clean.xml gradle/verification-metadata.xml | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 | |
with: | |
cache-disabled: true | |
- name: Update checksums | |
run: ./gradlew help licensee --write-verification-metadata sha256 | |
- name: Git commit | |
run: | | |
git config --global user.name 'Esta Nagy' | |
git config --global user.email 'nagyesta@gmail.com' | |
git checkout -b feature/update-dependency-checksums-${{ github.run_number }} | |
git add gradle/verification-metadata.xml | |
git commit -asm "Updating dependency checksums {patch}" | |
git push -f --set-upstream origin feature/update-dependency-checksums-${{ github.run_number }} | |
- name: Create PR | |
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | |
with: | |
github-token: ${{ secrets.PUBLISH_KEY }} | |
script: | | |
github.rest.pulls.create({ | |
owner: "${{ github.repository_owner }}", | |
repo: "lowkey-vault", | |
head: "feature/update-dependency-checksums-${{ github.run_number }}", | |
base: "main", | |
title: "Updating dependency checksums {patch}" | |
}); |