-
-
Notifications
You must be signed in to change notification settings - Fork 189
51 lines (40 loc) · 1.43 KB
/
prethink.yml
File metadata and controls
51 lines (40 loc) · 1.43 KB
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
name: Update Prethink Context
on:
schedule:
- cron: '0 6 * * 1' # Weekly Monday 6am UTC
workflow_dispatch: # Manual trigger
permissions:
contents: write
jobs:
prethink:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'liberica'
- name: Install Moderne CLI
run: |
curl -sSL https://app.moderne.io/cli | bash
echo "$HOME/.moderne/cli/bin" >> $GITHUB_PATH
- name: Configure Moderne
run: |
mod config moderne edit https://app.moderne.io --token ${{ secrets.MODERNE_TOKEN }}
mod config recipes jar install io.moderne.recipe:rewrite-prethink:LATEST
- uses: ./.github/actions/maven-github-settings
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build LSTs
run: mod build .
- name: Run Prethink (deterministic, no AI)
run: mod run . --recipe io.moderne.prethink.UpdatePrethinkContextNoAiStarter
- name: Apply changes
run: mod git apply . --last-recipe-run
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .moderne/context/ AGENTS.md
git diff --staged --quiet || git commit -m "[ci] Update Prethink context"
git push