-
-
Notifications
You must be signed in to change notification settings - Fork 13
63 lines (53 loc) · 1.71 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
54
55
56
57
58
59
60
61
62
63
name: Update Lexicons
on:
workflow_dispatch:
schedule:
- cron: "0 18 * * *"
jobs:
update-lexicons:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Delete Old Branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git fetch origin
if git show-ref --quiet refs/remotes/origin/pull-latest-lexicons; then
git push origin --delete pull-latest-lexicons
fi
- name: Create New Branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git switch -c pull-latest-lexicons
git push -u origin pull-latest-lexicons
- uses: dart-lang/[email protected]
- name: Install dependencies
run: dart pub get
- name: Pull Latest Lexicons
run: dart run ./bin/pull_latest_lexicons.dart
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
- name: Generate
run: |
dart run ./bin/generate_lexicon_ids.dart
dart run ./bin/generate_lexicon_matrix.dart
dart run ./bin/generate_supported_api_matrix.dart
dart run ./bin/generate_lexicon_docs.dart
- name: Format
run: |
dart format packages/lexicon
dart format packages/atproto
dart format packages/bluesky
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: "[Scheduled] Pull Latest Lexicons"
title: "[Scheduled] Pull Latest Lexicons"
branch: pull-latest-lexicons
base: main
labels: Github Actions
assignees: "${{ github.actor }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}