-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (43 loc) · 1.34 KB
/
update_lexicons.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
46
47
48
49
50
51
52
53
name: Update Lexicons
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update-lexicons:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
- name: Clone ATProto Repository
uses: actions/checkout@v3
with:
repository: bluesky-social/atproto
path: tmp-atproto
- name: Overwrite Lexicons
run: |
rm -rf lexicons/schemas
cp -R tmp-atproto/lexicons lexicons/schemas
- name: Get Changed Files
uses: tj-actions/verify-changed-files@v20
id: changed-files
- name: List Changed Files
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.changed_files }}
run: |
echo "Changed files: $CHANGED_FILES"
- name: Smoke Test
if: steps.changed-files.outputs.files_changed == 'true'
run: ./gradlew clean apiDump :app:desktop:assemble --no-daemon --stacktrace
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
if: steps.changed-files.outputs.files_changed == 'true'
with:
commit_message: Update lexicons from atproto