Merge branch 'master' into fix/7434-iosgl-name-mismatch #140
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: Fix formatting | |
on: [push] | |
permissions: | |
contents: write | |
jobs: | |
fix-formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Generate MobiVM MetalANGLE backend | |
run: | | |
./gradlew :backends:gdx-backend-robovm-metalangle:generate | |
./gradlew :backends:gdx-backend-robovm-metalangle:spotlessApply | |
- name: Commit generation changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add backends/gdx-backend-robovm-metalangle/src | |
git commit -m "Generate MobiVM MetalANGLE backend" -a | |
continue-on-error: true | |
- name: Apply formatter | |
run: ./gradlew spotlessApply | |
- name: Commit formatting changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -m "Apply formatter" -a | |
continue-on-error: true | |
- name: Push formatting changes | |
uses: ad-m/github-push-action@8407731efefc0d8f72af254c74276b7a90be36e1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |