Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 028f955

Browse files
authored
Merge pull request #387 from softwaremill/fix_stala_steward
fix stala steward
2 parents 1e6c069 + 172c06a commit 028f955

File tree

3 files changed

+56
-11
lines changed

3 files changed

+56
-11
lines changed

.github/workflows/scala-steward.yml

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,44 +3,44 @@ 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=build
1010
- "#files=1"
1111
- files=build.sbt
1212
actions:
1313
merge:
1414
method: merge
15-
- name: automatic merge for scala-steward pull requests affecting project plugins.sbt
15+
- name: automatic merge for softwaremill-ci pull requests affecting project plugins.sbt
1616
conditions:
17-
- author=scala-steward
17+
- author=softwaremill-ci
1818
- check-success=build
1919
- "#files=1"
2020
- files=project/plugins.sbt
2121
actions:
2222
merge:
2323
method: merge
24-
- name: semi-automatic merge for scala-steward pull requests
24+
- name: semi-automatic merge for softwaremill-ci pull requests
2525
conditions:
26-
- author=scala-steward
26+
- author=softwaremill-ci
2727
- check-success=build
2828
- "#approved-reviews-by>=1"
2929
actions:
3030
merge:
3131
method: merge
32-
- name: automatic merge for scala-steward pull requests affecting project build.properties
32+
- name: automatic merge for softwaremill-ci pull requests affecting project build.properties
3333
conditions:
34-
- author=scala-steward
34+
- author=softwaremill-ci
3535
- check-success=build
3636
- "#files=1"
3737
- files=project/build.properties
3838
actions:
3939
merge:
4040
method: merge
41-
- name: automatic merge for scala-steward pull requests affecting .scalafmt.conf
41+
- name: automatic merge for softwaremill-ci pull requests affecting .scalafmt.conf
4242
conditions:
43-
- author=scala-steward
43+
- author=softwaremill-ci
4444
- check-success=build
4545
- "#files=1"
4646
- files=.scalafmt.conf

.scala-steward.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
updates.ignore = [ { groupId = "org.scala-lang" } ]
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)