UpdateChecksums #470
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PUBLISH_KEY }} | |
- name: Set up JDK 17 | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
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@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1 | |
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 '[email protected]' | |
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}" | |
}); |