-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (34 loc) · 1.07 KB
/
upstream.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
name: Upstream
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
upstream:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v3
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: 'gradle'
- name: Configure Git
run: git config --global user.email "action@github.com" && git config --global user.name "Github Action"
- name: Apply patches
run: ./gradlew applyPatches --stacktrace
- name: Check for updates
run: ./scripts/updateUpstream.sh
- name: Build Paperclip Jar
run: ./gradlew createMojmapPaperclipJar --stacktrace
- name: Upload Paperclip Jar
uses: actions/upload-artifact@v4
with:
name: linearpaper
path: build/libs/linearpaper-paperclip-*-mojmap.jar
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}