Skip to content

Commit ed4ead5

Browse files
authored
Merge pull request #691 from softwaremill/fix_stala_steward
fix stala steward
2 parents 1b2688e + e2585d1 commit ed4ead5

File tree

3 files changed

+57
-11
lines changed

3 files changed

+57
-11
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,9 +3,9 @@ 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-2-12
1010
- check-success=ci-2-13
1111
- check-success=ci-docker
@@ -14,9 +14,9 @@ pull_request_rules:
1414
actions:
1515
merge:
1616
method: merge
17-
- name: automatic merge for scala-steward pull requests affecting project plugins.sbt
17+
- name: automatic merge for softwaremill-ci pull requests affecting project plugins.sbt
1818
conditions:
19-
- author=scala-steward
19+
- author=softwaremill-ci
2020
- check-success=ci-2-12
2121
- check-success=ci-2-13
2222
- check-success=ci-docker
@@ -25,9 +25,9 @@ pull_request_rules:
2525
actions:
2626
merge:
2727
method: merge
28-
- name: automatic merge for scala-steward pull requests affecting project build.properties
28+
- name: automatic merge for softwaremill-ci pull requests affecting project build.properties
2929
conditions:
30-
- author=scala-steward
30+
- author=softwaremill-ci
3131
- check-success=ci-2-12
3232
- check-success=ci-2-13
3333
- check-success=ci-docker
@@ -36,19 +36,19 @@ pull_request_rules:
3636
actions:
3737
merge:
3838
method: merge
39-
- name: semi-automatic merge for scala-steward pull requests
39+
- name: semi-automatic merge for softwaremill-ci pull requests
4040
conditions:
41-
- author=scala-steward
41+
- author=softwaremill-ci
4242
- check-success=ci-2-12
4343
- check-success=ci-2-13
4444
- check-success=ci-docker
4545
- "#approved-reviews-by>=1"
4646
actions:
4747
merge:
4848
method: merge
49-
- name: automatic merge for scala-steward pull requests affecting .scalafmt.conf
49+
- name: automatic merge for softwaremill-ci pull requests affecting .scalafmt.conf
5050
conditions:
51-
- author=scala-steward
51+
- author=softwaremill-ci
5252
- check-success=ci-2-12
5353
- check-success=ci-2-13
5454
- check-success=ci-docker

.scala-steward.conf

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

0 commit comments

Comments
 (0)