-
Notifications
You must be signed in to change notification settings - Fork 67
45 lines (36 loc) · 1.25 KB
/
update_verification_metadata.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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: |
git config user.name "${{ secrets.ADYEN_AUTOMATION_BOT_USER }}"
git config user.email "${{ secrets.ADYEN_AUTOMATION_BOT_NO_REPLY_EMAIL }}"
git add .
git diff-index --quiet HEAD || git commit -m "Update verification metadata
[skip update-verification-metadata]"
git push