Skip to content

Commit

Permalink
fix stala steward
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrzemien committed Jun 20, 2022
1 parent 1e6c069 commit 86ad08d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 11 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/scala-steward.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache sbt
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2/cache
~/.coursier
key: sbt-cache-${{ runner.os }}-JVM-${{ hashFiles('project/build.properties') }}
- 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
20 changes: 10 additions & 10 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,44 @@ pull_request_rules:
conditions: []
actions:
delete_head_branch: {}
- name: automatic merge for scala-steward pull requests affecting build.sbt
- name: automatic merge for softwaremill-ci pull requests affecting build.sbt
conditions:
- author=scala-steward
- author=softwaremill-ci
- check-success=build
- "#files=1"
- files=build.sbt
actions:
merge:
method: merge
- name: automatic merge for scala-steward pull requests affecting project plugins.sbt
- name: automatic merge for softwaremill-ci pull requests affecting project plugins.sbt
conditions:
- author=scala-steward
- author=softwaremill-ci
- check-success=build
- "#files=1"
- files=project/plugins.sbt
actions:
merge:
method: merge
- name: semi-automatic merge for scala-steward pull requests
- name: semi-automatic merge for softwaremill-ci pull requests
conditions:
- author=scala-steward
- author=softwaremill-ci
- check-success=build
- "#approved-reviews-by>=1"
actions:
merge:
method: merge
- name: automatic merge for scala-steward pull requests affecting project build.properties
- name: automatic merge for softwaremill-ci pull requests affecting project build.properties
conditions:
- author=scala-steward
- author=softwaremill-ci
- check-success=build
- "#files=1"
- files=project/build.properties
actions:
merge:
method: merge
- name: automatic merge for scala-steward pull requests affecting .scalafmt.conf
- name: automatic merge for softwaremill-ci pull requests affecting .scalafmt.conf
conditions:
- author=scala-steward
- author=softwaremill-ci
- check-success=build
- "#files=1"
- files=.scalafmt.conf
Expand Down
8 changes: 7 additions & 1 deletion .scala-steward.conf
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
updates.ignore = [ { groupId = "org.scala-lang" } ]
updates.ignore = [
{groupId = "com.softwaremill.sbt-softwaremill"},
{groupId = "org.scala-sbt"},
{groupId = "org.scala-lang", artifactId = "scala-compiler", version = "2.12."},
{groupId = "org.scala-lang", artifactId = "scala-compiler", version = "2.13."},
{groupId = "org.scala-lang", artifactId = "scala-compiler", version = "3."}
]

0 comments on commit 86ad08d

Please sign in to comment.