Skip to content

Update Lexicons

Update Lexicons #18

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