Skip to content

Update verification metadata #112

Update verification metadata

Update verification metadata #112

name: Update verification metadata
on:
workflow_dispatch:
jobs:
update-verification-metadata:
name: Update verification metadata
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: true
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Gradle update verification metadata
run: ./gradlew --write-verification-metadata sha256 build
- name: Commit
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git add .
git diff-index --quiet HEAD || git commit -am 'Update verification metadata'
git push