Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

UpdateChecksums

UpdateChecksums #282

name: UpdateChecksums
on:
workflow_dispatch:
permissions: read-all
jobs:
build:
name: Dependency checksum compaction action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
token: ${{ secrets.PUBLISH_KEY }}
- name: Set up JDK 17
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
distribution: temurin
java-version: 17
- name: "Remove previous version"
run: cp gradle/verification-metadata-clean.xml gradle/verification-metadata.xml
- name: "Update checksums"
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2.9.0
with:
cache-disabled: true
arguments: --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 }}
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.PUBLISH_KEY }}
script: |
github.rest.pulls.create({
owner: "${{ github.repository_owner }}",
repo: "yippee-ki-json",
head: "feature/update-dependency-checksums-${{ github.run_number }}",
base: "main",
title: "Updating dependency checksums {patch}"
});