-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 1.22 KB
/
generated-files.yaml
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
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Check Generated Files
on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]
# Always run this GHA on PRs, so that we have at least one successful check to satisfy branch protections.
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
if: "!contains( github.event.sender.login, 'broadbot')"
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: v1-${{ runner.os }}-gradle-${{ hashfiles('**/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle') }}
restore-keys: v1-${{ runner.os }}-gradle-${{ hashfiles('**/gradle-wrapper.properties') }}
- name: Regenerate documentation and Typescript files and check for changes
run: .github/tools/checkGeneratedFiles.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}