Scala Steward #870
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: Scala Steward | |
# This workflow will launch at 00:00 every day | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
scala-steward: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
id: jdk-setup | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'sbt' | |
- name: Cache sbt | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.sbt | |
~/.ivy2/cache | |
~/.coursier | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- name: Launch Scala Steward | |
uses: scala-steward-org/scala-steward-action@v2 | |
with: | |
author-name: scala-steward | |
author-email: scala-steward | |
github-token: ${{ secrets.REPO_GITHUB_TOKEN }} | |
repo-config: .scala-steward.conf | |
ignore-opts-files: false | |
- name: Cleanup | |
run: | | |
rm -rf "$HOME/.ivy2/local" || true | |
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true | |
find $HOME/.ivy2/cache -name "*-LM-SNAPSHOT*" -delete || true | |
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true | |
find $HOME/.sbt -name "*.lock" -delete || true |