Skip to content

Commit 7aa8807

Browse files
authored
Merge pull request #184 from softwaremill/fix_scala_steward
fix scala steward
2 parents 27bf495 + c8d68b1 commit 7aa8807

File tree

3 files changed

+56
-10
lines changed

3 files changed

+56
-10
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Scala Steward
2+
3+
# This workflow will launch at 00:00 every day
4+
on:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
workflow_dispatch:
8+
9+
jobs:
10+
scala-steward:
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 11
19+
- name: Cache sbt
20+
uses: actions/cache@v2
21+
with:
22+
path: |
23+
~/.sbt
24+
~/.ivy2/cache
25+
~/.coursier
26+
key: sbt-cache-${{ runner.os }}-JVM-${{ hashFiles('project/build.properties') }}
27+
- name: Launch Scala Steward
28+
uses: scala-steward-org/scala-steward-action@v2
29+
with:
30+
author-name: scala-steward
31+
author-email: scala-steward
32+
github-token: ${{ secrets.REPO_GITHUB_TOKEN }}
33+
repo-config: .scala-steward.conf
34+
ignore-opts-files: false
35+
- name: Cleanup
36+
run: |
37+
rm -rf "$HOME/.ivy2/local" || true
38+
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
39+
find $HOME/.ivy2/cache -name "*-LM-SNAPSHOT*" -delete || true
40+
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
41+
find $HOME/.sbt -name "*.lock" -delete || true

.mergify.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,48 @@ pull_request_rules:
33
conditions: []
44
actions:
55
delete_head_branch: {}
6-
- name: automatic merge for scala-steward pull requests affecting build.sbt
6+
- name: automatic merge for softwaremill-ci pull requests affecting build.sbt
77
conditions:
8-
- author=scala-steward
8+
- author=softwaremill-ci
99
- check-success=ci
1010
- check-success=mima
1111
- "#files=1"
1212
- files=build.sbt
1313
actions:
1414
merge:
1515
method: merge
16-
- name: automatic merge for scala-steward pull requests affecting project plugins.sbt
16+
- name: automatic merge for softwaremill-ci pull requests affecting project plugins.sbt
1717
conditions:
18-
- author=scala-steward
18+
- author=softwaremill-ci
1919
- check-success=ci
2020
- check-success=mima
2121
- "#files=1"
2222
- files=project/plugins.sbt
2323
actions:
2424
merge:
2525
method: merge
26-
- name: semi-automatic merge for scala-steward pull requests
26+
- name: semi-automatic merge for softwaremill-ci pull requests
2727
conditions:
28-
- author=scala-steward
28+
- author=softwaremill-ci
2929
- check-success=ci
3030
- check-success=mima
3131
- "#approved-reviews-by>=1"
3232
actions:
3333
merge:
3434
method: merge
35-
- name: automatic merge for scala-steward pull requests affecting project build.properties
35+
- name: automatic merge for softwaremill-ci pull requests affecting project build.properties
3636
conditions:
37-
- author=scala-steward
37+
- author=softwaremill-ci
3838
- check-success=ci
3939
- check-success=mima
4040
- "#files=1"
4141
- files=project/build.properties
4242
actions:
4343
merge:
4444
method: merge
45-
- name: automatic merge for scala-steward pull requests affecting .scalafmt.conf
45+
- name: automatic merge for softwaremill-ci pull requests affecting .scalafmt.conf
4646
conditions:
47-
- author=scala-steward
47+
- author=softwaremill-ci
4848
- check-success=ci
4949
- check-success=mima
5050
- "#files=1"

.scala-steward.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
updates.ignore = [
2+
{groupId = "org.scala-lang", artifactId = "scala-compiler", version = "2.12."},
3+
{groupId = "org.scala-lang", artifactId = "scala-compiler", version = "2.13."},
4+
{groupId = "org.scala-lang", artifactId = "scala-compiler", version = "3."}
5+
]

0 commit comments

Comments
 (0)