-
Notifications
You must be signed in to change notification settings - Fork 73
37 lines (35 loc) · 1.47 KB
/
collect-samples-cron.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
name: Collect samples CRON
on:
schedule:
- cron: '30 18 * * 1,4' # 18:30 UTC Mon, Thu
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- repo: 'https://github.com/JetBrains/kotlin-web-site'
filter: '#tag="code" & kotlin-runnable="true" & !validate="false"'
path: 'src/test/resources/test-compile-data/jvm/kotlin-web-site'
- repo: 'https://github.com/Kotlin/kotlin-by-example'
filter: '#tag="code" & class="language-run-kotlin" & !validate="false"'
path: 'src/test/resources/test-compile-data/jvm/kotlin-by-example'
- repo: 'https://github.com/kotlin-hands-on/hands-on'
filter: '#tag="code" & class="language-run-kotlin" & !validate="false"'
path: 'src/test/resources/test-compile-data/jvm/kotlin-hands-on'
steps:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Run a verifier
uses: AlexanderPrendota/kotlin-samples-verifier@master
with:
io-event: '' #reset default behavior
repository: '${{ matrix.repo }}'
verify-branch: 'master'
push-repository: 'https://github.com/${{github.repository}}'
tag-filter: '${{ matrix.filter }}'
push-path: '${{ matrix.path }}'
username: '${{ secrets.COMPILE_SERVICE_PUSHER }}' #token with an access to create PR in push-repository