-
Notifications
You must be signed in to change notification settings - Fork 66
45 lines (39 loc) · 1.28 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/**'
paths:
- 'dependencies.gradle'
jobs:
gradle-update-verification-metadata:
# https://github.com/actions/virtual-environments/
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v3
# Setup Java 17
# https://github.com/marketplace/actions/setup-java-jdk
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# Run gradlew check
- name: Gradle update verification metadata
run: ./gradlew --write-verification-metadata sha256 build --no-daemon
- name: Commit
run: |
git config --local user.email 'action@github.com'
git config --local user.name 'GitHub Action'
git add .
git commit -am 'Update verification metadata'
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}