Fix android proguard #128
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update | |
on: | |
push: | |
branches: | |
- master | |
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@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
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: | | |
mkdir -p build | |
jq 'del(.metadata)' --sort-keys desktop/build/aboutlibraries.json > build/json1.json | |
jq 'del(.metadata)' --sort-keys i18n/src/commonMain/resources/MR/files/aboutlibraries.json > build/json2.json | |
if cmp --silent build/json1.json build/json2.json; then | |
echo "Libraries didn't change" | |
else | |
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 }} |