fix: null fields when Gson reads corrupted files #402
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: build | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
if: ${{ !contains(github.head_ref, 'translations/') }} | |
runs-on: ubuntu-latest | |
env: | |
ORG_GRADLE_PROJECT_buildNumber: ${{ github.run_number }} | |
ORG_GRADLE_PROJECT_runAttempt: ${{ github.run_attempt }} | |
ORG_GRADLE_PROJECT_runningOnCi: ${{ true }} | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Read Project Version | |
id: read_properties | |
uses: christian-draeger/read-properties@1.1.1 | |
with: | |
path: gradle.properties | |
properties: version | |
- name: Upload Artifact | |
env: | |
project_version: ${{ steps.read_properties.outputs.value }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build_artifacts | |
path: build/libs/* |