2020-03-25 16:12:41 +01:00
|
|
|
name: Tuinity-Upstream
|
2020-03-25 04:05:38 +01:00
|
|
|
|
2020-03-25 16:12:41 +01:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "*/60 */2 * * *"
|
2020-03-25 04:05:38 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK 11
|
|
|
|
uses: actions/setup-java@v1.3.0
|
|
|
|
with:
|
|
|
|
java-version: 11
|
2020-03-25 16:12:41 +01:00
|
|
|
- name: Update with Tuinity
|
2020-03-25 04:05:38 +01:00
|
|
|
run: |
|
|
|
|
git submodule init
|
|
|
|
git submodule update --init --recursive
|
|
|
|
git config --global user.email "ci@github.com"
|
|
|
|
git config --global user.name "Github CI"
|
|
|
|
yapfaDir=`pwd`
|
|
|
|
cd Tuinity
|
2020-03-25 04:23:27 +01:00
|
|
|
pwd
|
|
|
|
git status
|
2020-03-25 04:05:38 +01:00
|
|
|
git fetch
|
2020-03-25 15:52:10 +01:00
|
|
|
git reset --hard origin
|
2020-03-25 04:05:38 +01:00
|
|
|
cd ..
|
2020-03-25 16:12:41 +01:00
|
|
|
./patchPaper.sh
|
|
|
|
cd Tuinity
|
|
|
|
./tuinity jar
|
|
|
|
cd $yapfaDir
|
|
|
|
./yapfa patch
|
|
|
|
./yapfa rb
|
|
|
|
./yapfa patch
|
|
|
|
./yapfa build
|
|
|
|
./yapfa paperclip
|
2020-03-25 15:56:40 +01:00
|
|
|
git add $(git rev-parse --show-toplevel)
|
|
|
|
git commit -m "Update upstream"
|
2020-03-25 23:29:04 +01:00
|
|
|
git status
|
2020-03-25 04:05:38 +01:00
|
|
|
- name: Create Pull Request
|
|
|
|
uses: peter-evans/create-pull-request@v2
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2020-03-25 16:04:08 +01:00
|
|
|
commit-message: Update Upstream
|
|
|
|
title: '[Automated] Tuinity updates'
|
|
|
|
body: 'Fetch Upstream from https://github.com/Spottedleaf/Tuinity'
|