-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add scala-steward workflow #2218
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Scala Steward | ||
|
||
# This workflow will launch at 00:00 every day | ||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
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.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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
updates.ignore = [{groupId = "com.softwaremill.sbt-softwaremill"}, {groupId = "org.scala-sbt"}] | ||
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."} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hm don't we want scala version upgrades? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With this configuration each Scala "major" version (2.12, 2.13, 3) still gets upgraded within given "major" version (e.g.: 2.12.14 -> 2.12.15) but "major" versions are not changed. In result you get:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah ok :) thanks |
||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this is ignored and we always end up with
github-actions
? Would be nice to somehow distinguish commits coming from scala-steward, though. I'm afraid there might be other instances of automatic commits coming from thegithub-actions
author, which might end up inadvertendly being merged. But maybe since the mergify config explicitly mentiones the files, it's not a problemThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
author-name/email: scala-stuard
is used as a commit authorgithub-actions
is used as a user, who opened a PRThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My proposal for the followup:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah ... so we cannot change the user who is opening the PR?
maybe it's a matter of clicking "allow workflow to run" until the first PR from github-actions is merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with merging this without mergify and fixing it in the next PR :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but the frequency of once-per-day is fine :)