scala-steward-action
scala-steward-action copied to clipboard
How do I create a a default config for multiple repositories?
Hello!
I am trying to add a default config to the repo that runs scala-steward but have so far failed in achieving it. My goal is to collect a common set of scala-steward configurations so I don't have to have the same .scala-steward.conf file in each repo.
Here is the workflow file in my scala-steward repo.
name: Scala-steward workflow
on:
schedule:
- cron: '0 22 * * FRI'
workflow_dispatch:
jobs:
scala-steward:
runs-on: ["self-hosted", "default"]
name: ${{ matrix.repos }}
strategy:
fail-fast: false
max-parallel: 1
matrix:
repos:
- repo1
- repo2
- repo3
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v11
- name: ${{ matrix.repos }}-update-dependencies
uses: scala-steward-org/scala-steward-action@v2
with:
github-token: ${{ secrets.BOT_TOKEN }}
author-email: "[email protected]"
author-name: "Robot"
cache-ttl: "0s"
ignore-opts-files: true
github-repository: myorg/${{ matrix.repos }}
repo-config: ".github/.scala-steward.conf"
From my understanding, repo-config should be the configuration needed to make this happen, but it seems to me that it doesn't get picked up. Here is the content of the .github/.scala-steward.conf file:
scalafmt.runAfterUpgrading = true
updates.pin = [ { groupId = "org.scala-lang", version = "2.12." } ]
The way I have checked what config is being picked up is by looking at the logs of the workflow. When I don't have a config file in my local repo (e.g. repo1), but one in my scala-steward repo then the logs look like this:
Launching org.scala-steward:scala-steward-core_2.13:0.14.0
2022-05-05 14:19:03,416 INFO
____ _ ____ _ _
/ ___| ___ __ _| | __ _ / ___|| |_ _____ ____ _ _ __ __| |
\___ \ / __/ _` | |/ _` | \___ \| __/ _ \ \ /\ / / _` | '__/ _` |
___) | (_| (_| | | (_| | ___) | || __/\ V V / (_| | | | (_| |
|____/ \___\__,_|_|\__,_| |____/ \__\___| \_/\_/ \__,_|_| \__,_|
v0.14.0
2022-05-05 14:19:04,201 INFO Loaded 58 artifact migration(s)
2022-05-05 14:19:04,523 INFO Loaded 26 Scalafix migration(s)
2022-05-05 14:19:04,799 INFO Loaded 2 repo config(s)
2022-05-05 14:19:04,991 INFO Run self checks
2022-05-05 14:19:04,998 INFO Using git version 2.35.1
2022-05-05 14:19:05,467 INFO Using scalafix 0.10.0
2022-05-05 14:19:06,064 INFO Using scalafmt 3.5.2
2022-05-05 14:19:06,780 INFO Clean workspace /home/runner/scala-steward/workspace
2022-05-05 14:19:06,786 INFO Add global sbt plugins
2022-05-05 14:19:06,819 INFO ──────────── Steward myorg/repo1:scala-steward-test ────────────
2022-05-05 14:19:06,820 INFO Check cache of myorg/repo1:scala-steward-test
2022-05-05 14:19:07,544 INFO Find updates for myorg/repo1:scala-steward-test
2022-05-05 14:19:10,483 INFO Ignore org.scala-sbt:sbt : 1.6.2 -> 1.7.0-M1 -> 1.7.0-M2 -> 1.7.0-M2-6810fix (reason: no suitable next version)
2022-05-05 14:19:10,484 INFO Ignore org.scala-sbt:(scripted-plugin, scripted-plugin_2.12) : 1.6.2 -> 1.7.0-M1 -> 1.7.0-M2 -> 1.7.0-M2-6810fix (reason: no suitable next version)
2022-05-05 14:19:10,485 INFO Ignore org.scalactic:(scalactic, scalactic_2.12) : 3.2.12 -> 3.3.0-SNAP1 -> 3.3.0-SNAP2 -> 3.3.0-SNAP3 (reason: no suitable next version)
2022-05-05 14:19:10,485 INFO Ignore org.scalatest:(scalatest, scalatest_2.12) : 3.2.12 -> 3.3.0-SNAP2 -> 3.3.0-SNAP3 (reason: no suitable next version)
2022-05-05 14:19:10,520 INFO Found 1 update:
org.scala-lang:scala-library : 2.12.0 -> 2.12.15
2022-05-05 14:19:10,522 INFO myorg/repo1:scala-steward-test is up-to-date
2022-05-05 14:19:10,534 INFO ──────────── Total time: Steward myorg/repo1:scala-steward-test: 3s 715ms ────────────
2022-05-05 14:19:10,537 INFO ──────────── Total time: run: 5s 546ms ────────────
When I have a scala-steward.conf in my local repo (e.g. repo1) then I get the following log:
Launching org.scala-steward:scala-steward-core_2.13:0.14.0
2022-04-25 07:24:59,075 INFO
____ _ ____ _ _
/ ___| ___ __ _| | __ _ / ___|| |_ _____ ____ _ _ __ __| |
\___ \ / __/ _` | |/ _` | \___ \| __/ _ \ \ /\ / / _` | '__/ _` |
___) | (_| (_| | | (_| | ___) | || __/\ V V / (_| | | | (_| |
|____/ \___\__,_|_|\__,_| |____/ \__\___| \_/\_/ \__,_|_| \__,_|
v0.14.0
2022-04-25 07:25:00,147 INFO Loaded 56 artifact migration(s)
2022-04-25 07:25:01,094 INFO Loaded 26 Scalafix migration(s)
2022-04-25 07:25:01,476 INFO Loaded 1 repo config(s)
2022-04-25 07:25:02,012 INFO Run self checks
2022-04-25 07:25:02,029 INFO Using git version 2.35.1
2022-04-25 07:25:02,850 INFO Using scalafix 0.10.0
2022-04-25 07:25:03,461 INFO Using scalafmt 3.5.2
2022-04-25 07:25:04,122 INFO Clean workspace /home/runner/scala-steward/workspace
2022-04-25 07:25:04,128 INFO Add global sbt plugins
2022-04-25 07:25:04,160 INFO ──────────── Steward myorg/repo1 ────────────
2022-04-25 07:25:04,161 INFO Check cache of myorg/repo1
2022-04-25 07:25:04,966 INFO Clone myorg/repo1
2022-04-25 07:25:06,942 INFO Refresh cache of myorg/repo1
2022-04-25 07:25:06,962 INFO Parsed repo config {
"commits" : {
"message" : null
},
"pullRequests" : {
"frequency" : null
},
"scalafmt" : {
"runAfterUpgrading" : false
},
"updates" : {
"pin" : [
{
"groupId" : "org.scala-lang",
"artifactId" : null,
"version" : {
"prefix" : "2.12.",
"suffix" : null,
"exact" : null,
"contains" : null
}
}
],
"limit" : null,
"fileExtensions" : null
},
"postUpdateHooks" : null,
"updatePullRequests" : null,
"buildRoots" : null
}
2022-04-25 07:25:30,430 INFO Find updates for myorg/repo1
2022-04-25 07:25:33,353 INFO Ignore org.scala-lang:scala-library : 2.12.15 -> 2.13.0-M1 -> 2.13.0-M2 -> ... -> 2.13.6 -> 2.13.7 -> 2.13.8 (reason: ignored by config)
2022-04-25 07:25:33,355 INFO Ignore org.scala-sbt:sbt : 1.6.2 -> 1.7.0-M1 -> 1.7.0-M2 -> 1.7.0-M2-6810fix (reason: no suitable next version)
2022-04-25 07:25:33,356 INFO Ignore org.scala-sbt:(scripted-plugin, scripted-plugin_2.12) : 1.6.2 -> 1.7.0-M1 -> 1.7.0-M2 -> 1.7.0-M2-6810fix (reason: no suitable next version)
2022-04-25 07:25:33,407 INFO Found 4 updates:
au.com.onegeek:sbt-dotenv : 2.1.233 -> 3.0.0
org.scalactic:(scalactic, scalactic_2.12) : 3.2.11 -> 3.2.12
org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.1 -> 3.5.2
org.scalatest:(scalatest, scalatest_2.12) : 3.2.11 -> 3.2.12
2022-04-25 07:25:33,411 INFO myorg/repo1 is outdated:
new version: au.com.onegeek:sbt-dotenv : 2.1.233 -> 3.0.0
new version: org.scalactic:(scalactic, scalactic_2.12) : 3.2.11 -> 3.2.12
new version: org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.1 -> 3.5.2
new version: org.scalatest:(scalatest, scalatest_2.12) : 3.2.11 -> 3.2.12
2022-04-25 07:25:33,414 INFO Nurture myorg/repo1
2022-04-25 07:25:33,423 INFO Found 4 updates:
au.com.onegeek:sbt-dotenv : 2.1.233 -> 3.0.0
org.scalactic:(scalactic, scalactic_2.12) : 3.2.11 -> 3.2.12
org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.1 -> 3.5.2
org.scalatest:(scalatest, scalatest_2.12) : 3.2.11 -> 3.2.12
2022-04-25 07:25:33,434 INFO Process update au.com.onegeek:sbt-dotenv : 2.1.233 -> 3.0.0
2022-04-25 07:25:33,725 INFO Found PR https://github.com/myorg/repo1/pull/19
2022-04-25 07:25:33,783 INFO PR has no conflict with main
2022-04-25 07:25:33,801 INFO Process update org.scalactic:(scalactic, scalactic_2.12) : 3.2.11 -> 3.2.12
2022-04-25 07:25:34,161 INFO Trying heuristic 'moduleId'
2022-04-25 07:25:34,178 INFO Create branch update/scalactic-3.2.12
2022-04-25 07:25:38,090 INFO Push 1 commit(s)
2022-04-25 07:25:40,161 INFO Create PR update/scalactic-3.2.12
2022-04-25 07:25:49,434 INFO Created PR https://github.com/myorg/repo1/pull/21
2022-04-25 07:25:49,439 INFO Process update org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.1 -> 3.5.2
2022-04-25 07:25:49,723 INFO Found PR https://github.com/myorg/repo1/pull/20
2022-04-25 07:25:49,747 INFO PR has no conflict with main
2022-04-25 07:25:49,751 INFO Process update org.scalatest:(scalatest, scalatest_2.12) : 3.2.11 -> 3.2.12
2022-04-25 07:25:49,981 INFO Trying heuristic 'moduleId'
2022-04-25 07:25:49,984 INFO Create branch update/scalatest-3.2.12
2022-04-25 07:25:52,108 INFO Push 1 commit(s)
2022-04-25 07:25:54,080 INFO Create PR update/scalatest-3.2.12
2022-04-25 07:25:56,923 INFO Created PR https://github.com/myorg/repo1/pull/22
2022-04-25 07:25:56,964 INFO ──────────── Total time: Steward myorg/repo1: 52s 803ms ────────────
It is from these logs I assumed that no default config is read in. Is this a correct assumption or am I making a mistake somewhere?
I suspect that it is possible to make a default config and that it is only my ignorance holding me back. Hope you can help me understand what I am doing wrong.
I encountered exactly the same issue. Centralized repo-config located in the repository where the action is running does not have an effect.
Hi @Jonas-Dixa & @jyrkih! Thanks for the heads up about this.
Could you try enabling debug logging in the action's workflow as stated here and share the resulted logs?
Thanks!
Hello @alejandrohdezma,
Thank you for your response!
Below you'll find the logs with debug steps. I have added all info from the step this time. For me, it seems that no extra info is given in the scala-steward log. Be aware that the repo and organization name are alias names.
Log when there is a scala-steward.conf in the repo (e.g. repo1):
##[debug]Evaluating condition for step: 'repo1-update-dependencies'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: repo1-update-dependencies
##[debug]Register post job cleanup for action: scala-steward-org/scala-steward-action@v2
##[debug]Loading inputs
##[debug]Evaluating: secrets.BOT_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'BOT_TOKEN'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating: format('myorg/{0}', matrix.repos)
##[debug]Evaluating format:
##[debug]..Evaluating String:
##[debug]..=> 'myorg/{0}'
##[debug]..Evaluating Index:
##[debug]....Evaluating matrix:
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'repos'
##[debug]..=> 'repo1'
##[debug]=> 'myorg/repo1'
##[debug]Result: 'myorg/repo1'
##[debug]Loading env
Run scala-steward-org/scala-steward-action@v2
✓ Connected to Maven Central
##[debug]Installing coursier from https://git.io/coursier-cli-linux
##[debug]Downloading https://git.io/coursier-cli-linux
##[debug]Destination /runner/_work/_temp/6eef09a7-6c41-4340-ae29-1a5606685e86
##[debug]download complete
✓ Coursier installed, version: 2.0.16
✓ Github Token provided as input
✓ User information retrieved from Github
##[debug]- Login: Robot
##[debug]- Email: no email found
##[debug]- Name: Robot
✓ Default Scala Steward configuration set to: .github/.scala-steward.conf
✓ Github Repository set to: myorg/repo1. Will update scala-steward-test branch.
✓ Scala Steward workspace created
::group::Trying to restore workspace contents from cache...
Trying to restore workspace contents from cache...
##[debug]Wrote scalafmt
✓ scalafmt installed, version: scalafmt 3.5.7
##[debug]Wrote scalafix
✓ scalafix installed, version: 0.10.0
::group::Launching org.scala-steward:scala-steward-core_2.13:0.14.0
Launching org.scala-steward:scala-steward-core_2.13:0.14.0
2022-05-30 11:09:59,562 INFO
____ _ ____ _ _
/ ___| ___ __ _| | __ _ / ___|| |_ _____ ____ _ _ __ __| |
\___ \ / __/ _` | |/ _` | \___ \| __/ _ \ \ /\ / / _` | '__/ _` |
___) | (_| (_| | | (_| | ___) | || __/\ V V / (_| | | | (_| |
|____/ \___\__,_|_|\__,_| |____/ \__\___| \_/\_/ \__,_|_| \__,_|
v0.14.0
2022-05-30 11:10:00,710 INFO Loaded 81 artifact migration(s)
2022-05-30 11:10:01,086 INFO Loaded 27 Scalafix migration(s)
2022-05-30 11:10:01,366 INFO Loaded 2 repo config(s)
2022-05-30 11:10:01,658 INFO Run self checks
2022-05-30 11:10:01,667 INFO Using git version 2.33.1
2022-05-30 11:10:02,441 INFO Using scalafix 0.10.0
2022-05-30 11:10:03,219 INFO Using scalafmt 3.5.7
2022-05-30 11:10:04,071 INFO Clean workspace /home/runner/scala-steward/workspace
2022-05-30 11:10:04,079 INFO Add global sbt plugins
2022-05-30 11:10:04,147 INFO ──────────── Steward myorg/repo1:scala-steward-test ────────────
2022-05-30 11:10:04,148 INFO Check cache of myorg/repo1:scala-steward-test
2022-05-30 11:10:05,093 INFO Clone myorg/repo1
2022-05-30 11:10:07,304 INFO Refresh cache of myorg/repo1:scala-steward-test
2022-05-30 11:10:47,066 INFO Find updates for myorg/repo1:scala-steward-test
2022-05-30 11:10:49,838 INFO Ignore org.scala-sbt:sbt : 1.6.2 -> 1.7.0-M1 -> 1.7.0-M2 -> 1.7.0-M2-6810fix (reason: no suitable next version)
2022-05-30 11:10:49,839 INFO Ignore org.scala-sbt:(scripted-plugin, scripted-plugin_2.12) : 1.6.2 -> 1.7.0-M1 -> 1.7.0-M2 -> 1.7.0-M2-6810fix (reason: no suitable next version)
2022-05-30 11:10:49,839 INFO Ignore org.scalactic:(scalactic, scalactic_2.12) : 3.2.12 -> 3.3.0-SNAP1 -> 3.3.0-SNAP2 -> 3.3.0-SNAP3 (reason: no suitable next version)
2022-05-30 11:10:49,840 INFO Ignore org.scalatest:(scalatest, scalatest_2.12) : 3.2.12 -> 3.3.0-SNAP2 -> 3.3.0-SNAP3 (reason: no suitable next version)
2022-05-30 11:10:49,877 INFO Found 2 updates:
org.scala-lang:scala-library : 2.12.0 -> 2.12.15
org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7
2022-05-30 11:10:49,879 INFO myorg/repo1:scala-steward-test is outdated:
PR outdated: org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7 (https://github.com/myorg/repo1/pull/51)
2022-05-30 11:10:49,881 INFO Nurture myorg/repo1:scala-steward-test
2022-05-30 11:10:49,886 INFO Found 1 update:
org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7
2022-05-30 11:10:49,892 INFO Process update org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7
2022-05-30 11:10:50,178 INFO Found PR https://github.com/myorg/repo1/pull/51
2022-05-30 11:10:50,230 INFO PR has no conflict with scala-steward-test
2022-05-30 11:10:50,297 INFO ──────────── Total time: Steward myorg/repo1:scala-steward-test: 46s 149ms ────────────
2022-05-30 11:10:50,308 INFO ──────────── Total time: run: 48s 651ms ────────────
::endgroup::
::group::Saving workspace to cache...
Saving workspace to cache...
##[debug]Node Action run completed with exit code 0
##[debug]Finishing: repo1-update-dependencies
Log when there is a scala-steward.conf in the repo (e.g. repo1):
##[debug]Evaluating condition for step: 'repo1-update-dependencies'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: repo1-update-dependencies
##[debug]Register post job cleanup for action: scala-steward-org/scala-steward-action@v2
##[debug]Loading inputs
##[debug]Evaluating: secrets.BOT_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'BOT_TOKEN'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating: format('myorg/{0}', matrix.repos)
##[debug]Evaluating format:
##[debug]..Evaluating String:
##[debug]..=> 'myorg/{0}'
##[debug]..Evaluating Index:
##[debug]....Evaluating matrix:
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'repos'
##[debug]..=> 'repo1'
##[debug]=> 'myorg/repo1'
##[debug]Result: 'myorg/repo1'
##[debug]Loading env
Run scala-steward-org/scala-steward-action@v2
✓ Connected to Maven Central
##[debug]Installing coursier from https://git.io/coursier-cli-linux
##[debug]Downloading https://git.io/coursier-cli-linux
##[debug]Destination /runner/_work/_temp/afb6c0d7-384a-40b9-b8eb-b67ecc837e75
##[debug]download complete
✓ Coursier installed, version: 2.0.16
✓ Github Token provided as input
✓ User information retrieved from Github
##[debug]- Login: Robot
##[debug]- Email: no email found
##[debug]- Name: Robot
✓ Default Scala Steward configuration set to: .github/.scala-steward.conf
✓ Github Repository set to: myorg/repo1. Will update scala-steward-test branch.
✓ Scala Steward workspace created
::group::Trying to restore workspace contents from cache...
Trying to restore workspace contents from cache...
##[debug]Wrote scalafmt
✓ scalafmt installed, version: scalafmt 3.5.7
##[debug]Wrote scalafix
✓ scalafix installed, version: 0.10.0
::group::Launching org.scala-steward:scala-steward-core_2.13:0.14.0
Launching org.scala-steward:scala-steward-core_2.13:0.14.0
2022-05-30 07:20:35,342 INFO
____ _ ____ _ _
/ ___| ___ __ _| | __ _ / ___|| |_ _____ ____ _ _ __ __| |
\___ \ / __/ _` | |/ _` | \___ \| __/ _ \ \ /\ / / _` | '__/ _` |
___) | (_| (_| | | (_| | ___) | || __/\ V V / (_| | | | (_| |
|____/ \___\__,_|_|\__,_| |____/ \__\___| \_/\_/ \__,_|_| \__,_|
v0.14.0
2022-05-30 07:20:36,124 INFO Loaded 81 artifact migration(s)
2022-05-30 07:20:36,440 INFO Loaded 27 Scalafix migration(s)
2022-05-30 07:20:36,679 INFO Loaded 2 repo config(s)
2022-05-30 07:20:36,865 INFO Run self checks
2022-05-30 07:20:36,872 INFO Using git version 2.33.1
2022-05-30 07:20:37,347 INFO Using scalafix 0.10.0
2022-05-30 07:20:37,893 INFO Using scalafmt 3.5.7
2022-05-30 07:20:38,607 INFO Clean workspace /home/runner/scala-steward/workspace
2022-05-30 07:20:38,614 INFO Add global sbt plugins
2022-05-30 07:20:38,647 INFO ──────────── Steward myorg/repo1:scala-steward-test ────────────
2022-05-30 07:20:38,647 INFO Check cache of myorg/repo1:scala-steward-test
2022-05-30 07:20:39,371 INFO Clone myorg/repo1
2022-05-30 07:20:41,413 INFO Refresh cache of myorg/repo1:scala-steward-test
2022-05-30 07:20:41,433 INFO Parsed repo config {
"commits" : {
"message" : null
},
"pullRequests" : {
"frequency" : null
},
"scalafmt" : {
"runAfterUpgrading" : true
},
"updates" : {
"pin" : [
{
"groupId" : "org.scala-lang",
"artifactId" : null,
"version" : {
"prefix" : "2.12.",
"suffix" : null,
"exact" : null,
"contains" : null
}
}
],
"allow" : [
],
"ignore" : [
],
"limit" : null,
"fileExtensions" : null
},
"postUpdateHooks" : null,
"updatePullRequests" : null,
"buildRoots" : null
}
2022-05-30 07:21:05,196 INFO Find updates for myorg/repo1:scala-steward-test
2022-05-30 07:21:08,330 INFO Ignore org.scala-sbt:sbt : 1.6.2 -> 1.7.0-M1 -> 1.7.0-M2 -> 1.7.0-M2-6810fix (reason: no suitable next version)
2022-05-30 07:21:08,331 INFO Ignore org.scala-sbt:(scripted-plugin, scripted-plugin_2.12) : 1.6.2 -> 1.7.0-M1 -> 1.7.0-M2 -> 1.7.0-M2-6810fix (reason: no suitable next version)
2022-05-30 07:21:08,331 INFO Ignore org.scalactic:(scalactic, scalactic_2.12) : 3.2.12 -> 3.3.0-SNAP1 -> 3.3.0-SNAP2 -> 3.3.0-SNAP3 (reason: no suitable next version)
2022-05-30 07:21:08,332 INFO Ignore org.scalatest:(scalatest, scalatest_2.12) : 3.2.12 -> 3.3.0-SNAP2 -> 3.3.0-SNAP3 (reason: no suitable next version)
2022-05-30 07:21:08,360 INFO Found 2 updates:
org.scala-lang:scala-library : 2.12.0 -> 2.12.15
org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7
2022-05-30 07:21:08,363 INFO myorg/repo1:scala-steward-test is outdated:
new version: org.scala-lang:scala-library : 2.12.0 -> 2.12.15
new version: org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7
2022-05-30 07:21:08,364 INFO Nurture myorg/repo1:scala-steward-test
2022-05-30 07:21:08,369 INFO Found 2 updates:
org.scala-lang:scala-library : 2.12.0 -> 2.12.15
org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7
2022-05-30 07:21:08,376 INFO Process update org.scala-lang:scala-library : 2.12.0 -> 2.12.15
2022-05-30 07:21:08,651 INFO PR https://github.com/myorg/repo1/pull/31 is closed
2022-05-30 07:21:08,663 INFO Process update org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7
2022-05-30 07:21:08,959 INFO Trying heuristic 'moduleId'
2022-05-30 07:21:08,967 INFO Trying heuristic 'strict'
2022-05-30 07:21:08,972 INFO Trying heuristic 'original'
2022-05-30 07:21:08,973 INFO Trying heuristic 'relaxed'
2022-05-30 07:21:08,978 INFO Trying heuristic 'sliding'
2022-05-30 07:21:08,983 INFO Trying heuristic 'completeGroupId'
2022-05-30 07:21:08,985 INFO Trying heuristic 'groupId'
2022-05-30 07:21:08,987 INFO Trying heuristic 'specific'
2022-05-30 07:21:08,990 INFO Create branch update/scala-steward-test/scalafmt-core-3.5.7
2022-05-30 07:21:09,792 INFO Executing post-update hook for org.scalameta:scalafmt-core with command 'scalafmt --non-interactive'
2022-05-30 07:21:13,624 INFO Push 2 commit(s)
2022-05-30 07:21:15,535 INFO Create PR update/scala-steward-test/scalafmt-core-3.5.7
2022-05-30 07:21:24,367 INFO Created PR https://github.com/myorg/repo1/pull/51
2022-05-30 07:21:24,413 INFO ──────────── Total time: Steward myorg/repo1:scala-steward-test: 45s 765ms ────────────
2022-05-30 07:21:24,415 INFO ──────────── Total time: run: 47s 551ms ────────────
::endgroup::
::group::Saving workspace to cache...
Saving workspace to cache...
##[debug]Node Action run completed with exit code 0
##[debug]Finishing: repo1-update-dependencies
As before both have a default configuration specified.
@exoego @fthomas do either of you know of what might be happening here?
Diffs.
**-**-** **:**:** INFO Check cache of myorg/repo1:scala-steward-test
**-**-** **:**:** INFO Clone myorg/repo1
**-**-** **:**:** INFO Refresh cache of myorg/repo1:scala-steward-test
+ **-**-** **:**:** INFO Parsed repo config {
+ "commits" : {
+ "message" : null
+ },
+ "pullRequests" : {
+ "frequency" : null
+ },
+ "scalafmt" : {
+ "runAfterUpgrading" : true
+ },
+ "updates" : {
+ "pin" : [
+ {
+ "groupId" : "org.scala-lang",
+ "artifactId" : null,
+ "version" : {
+ "prefix" : "2.12.",
+ "suffix" : null,
+ "exact" : null,
+ "contains" : null
+ }
+ }
+ ],
+ "allow" : [
+ ],
+ "ignore" : [
+ ],
+ "limit" : null,
+ "fileExtensions" : null
+ },
+ "postUpdateHooks" : null,
+ "updatePullRequests" : null,
+ "buildRoots" : null
+ }
**-**-** **:**:** INFO Find updates for myorg/repo1:scala-steward-test
**-**-** **:**:** INFO Ignore org.scala-sbt:sbt : 1.6.2 -> 1.7.0-M1 -> 1.7.0-M2 -> 1.7.0-M2-6810fix (reason: no suitable next version)
**-**-** **:**:** INFO Ignore org.scala-sbt:(scripted-plugin, scripted-plugin_2.12) : 1.6.2 -> 1.7.0-M1 -> 1.7.0-M2 -> 1.7.0-M2-6810fix (reason: no suitable next version)
@@ -80,15 +114,30 @@
org.scala-lang:scala-library : 2.12.0 -> 2.12.15
org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7
**-**-** **:**:** INFO myorg/repo1:scala-steward-test is outdated:
- PR outdated: org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7 (https://github.com/myorg/repo1/pull/51)
+ new version: org.scala-lang:scala-library : 2.12.0 -> 2.12.15
+ new version: org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7
**-**-** **:**:** INFO Nurture myorg/repo1:scala-steward-test
- **-**-** **:**:** INFO Found 1 update:
+ **-**-** **:**:** INFO Found 2 updates:
+ org.scala-lang:scala-library : 2.12.0 -> 2.12.15
org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7
+ **-**-** **:**:** INFO Process update org.scala-lang:scala-library : 2.12.0 -> 2.12.15
+ **-**-** **:**:** INFO PR https://github.com/myorg/repo1/pull/31 is closed
**-**-** **:**:** INFO Process update org.scalameta:(scalafmt-core, scalafmt-core_2.13) : 3.5.2 -> 3.5.7
- **-**-** **:**:** INFO Found PR https://github.com/myorg/repo1/pull/51
- **-**-** **:**:** INFO PR has no conflict with scala-steward-test
- **-**-** **:**:** INFO ──────────── Total time: Steward myorg/repo1:scala-steward-test: 46s 149ms ────────────
- **-**-** **:**:** INFO ──────────── Total time: run: 48s 651ms ────────────
+ **-**-** **:**:** INFO Trying heuristic 'moduleId'
+ **-**-** **:**:** INFO Trying heuristic 'strict'
+ **-**-** **:**:** INFO Trying heuristic 'original'
+ **-**-** **:**:** INFO Trying heuristic 'relaxed'
+ **-**-** **:**:** INFO Trying heuristic 'sliding'
+ **-**-** **:**:** INFO Trying heuristic 'completeGroupId'
+ **-**-** **:**:** INFO Trying heuristic 'groupId'
+ **-**-** **:**:** INFO Trying heuristic 'specific'
+ **-**-** **:**:** INFO Create branch update/scala-steward-test/scalafmt-core-3.5.7
+ **-**-** **:**:** INFO Executing post-update hook for org.scalameta:scalafmt-core with command 'scalafmt --non-interactive'
+ **-**-** **:**:** INFO Push 2 commit(s)
+ **-**-** **:**:** INFO Create PR update/scala-steward-test/scalafmt-core-3.5.7
+ **-**-** **:**:** INFO Created PR https://github.com/myorg/repo1/pull/51
+ **-**-** **:**:** INFO ──────────── Total time: Steward myorg/repo1:scala-steward-test: 45s 765ms ────────────
+ **-**-** **:**:** INFO ──────────── Total time: run: 47s 551ms ────────────
::endgroup::
::group::Saving workspace to cache...
Saving workspace to cache...
Disclaimer: I am not using scala-steward-action.
repo-config The path to a .scala-steward.conf file with default values for all repos updated with this action.
IIUC, I do not think this (a centralized, default config for the action) is possible.
GitHub actions are executed on each repos.
The value repo-config: ".github/.scala-steward.conf" refers to .github/.scala-steward.conf in each repos.
It means that you are not centralizing the config.
When one wants to centralize config, it should be something like repo-config: https://github.com/YOUR-ORG/FOO-BAR/.scala-steward.conf, I guess.
I am not sure the current implementation of scala-steward-actions can fetch the config file outside of the working repo.
From my understanding they're executing the action from a centralized repository, so the configuration file should be there
Ah, I see.
This actions supports repo.md
I think I'm encountering this same issue, after applying https://github.com/guardian/scala-steward-public-repos/pull/3 I'm not seeing this expected line in the logs:
https://github.com/scala-steward-org/scala-steward-action/blob/48b0a17dfcec3e15d15713a6a7303e250ede9e36/src/check.ts#L57
Hey @rtyley please be aware that for the action to be able to find your file you need to checkout your repository first (using actions/checkout).
Closing this since there doesn't seem to be an issue with default configs, please, feel free to re-open it if the issue persists. Thanks!