mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2026-01-15 08:12:33 +01:00
73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
name: Update
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
update_files:
|
|
name: Update files
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone repo
|
|
uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-java@v1
|
|
with:
|
|
java-version: '17'
|
|
architecture: x64
|
|
|
|
- name: Setup Cl
|
|
run: ./scripts/SetupClUnix.sh
|
|
|
|
- name: Update Locales
|
|
uses: gradle/gradle-build-action@v2
|
|
with:
|
|
arguments: generateLocales
|
|
|
|
- name: Commit locale changes
|
|
uses: EndBug/add-and-commit@v9
|
|
with:
|
|
message: Update avalible Locales
|
|
push: false
|
|
|
|
- name: Update Libraries
|
|
uses: gradle/gradle-build-action@v2
|
|
with:
|
|
arguments: desktop:exportLibraryDefinitions -PexportPath=build
|
|
|
|
- name: Move libraries json
|
|
run: |
|
|
DIFF="$(diff <(jq 'del(.metadata)' --sort-keys desktop/build/aboutlibraries.json) <(jq 'del(.metadata)' --sort-keys i18n/src/commonMain/resources/MR/files/aboutlibraries.json))"
|
|
if [ -n "$DIFF" ]; then
|
|
mv desktop/build/aboutlibraries.json i18n/src/commonMain/resources/MR/files/aboutlibraries.json -f
|
|
echo "Moved file"
|
|
fi
|
|
|
|
- name: Commit library changes
|
|
uses: EndBug/add-and-commit@v9
|
|
with:
|
|
message: Update Libraries
|
|
push: false
|
|
|
|
- name: Format files
|
|
uses: gradle/gradle-build-action@v2
|
|
with:
|
|
arguments: formatKotlin
|
|
|
|
- name: Commit lint changes
|
|
uses: EndBug/add-and-commit@v9
|
|
with:
|
|
message: Automatic Lint
|
|
push: false
|
|
|
|
- name: Push changes
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: ${{ github.ref }} |