Skip to content

Update verification metadata #158

Update verification metadata

Update verification metadata #158

name: Update verification metadata
on:
push:
branches:
- 'renovate/android.gradle.plugin'
workflow_dispatch:
jobs:
update-verification-metadata:
name: Update verification metadata
runs-on: ubuntu-latest
if: ${{ !contains(github.event.commits[0].message, '[skip update-verification-metadata]') }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
# - name: Set up JDK
# uses: actions/setup-java@v4
# with:
# distribution: 'zulu'
# java-version: 17
#
# - name: Gradle cache
# uses: gradle/actions/setup-gradle@v4
# 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: |
echo ${{ github.event.commits[0].message }}
date > test_file.txt
git config --global user.name "${{ secrets.ADYEN_AUTOMATION_BOT_USER }}"
git config --global user.email "${{ secrets.TOKEN_EMAIL }}"
git add .
git diff-index --quiet HEAD || git commit -m "Update verification metadata
[skip update-verification-metadata]"
git push