This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
Update dependency org.fusesource.jansi:jansi to v2.4.1 #214
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: | |
paths-ignore: | |
- '*.md' | |
workflow_dispatch: | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Using Caches | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 16 | |
- name: Grant Execute Permission to gradlew | |
run: chmod +x gradlew | |
- name: Format with ktlint | |
run: ./gradlew ktlintFormat | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Push cleaned code | |
run: | | |
git add .; | |
if git diff-index --quiet HEAD --; then | |
exit 0; | |
else | |
git config user.name github-actions; | |
git config user.email github-actions@github.com; | |
git commit -sam "♻️ Apply ktlint"; | |
git push | |
fi |