Skip to content

Commit 8d658e0

Browse files
authored
Merge pull request #37 from mzuehlke/postUpdateHooks
Use Scala Steward postUpdateHooks to update action.yml
2 parents 75854e7 + 236358a commit 8d658e0

File tree

3 files changed

+13
-37
lines changed

3 files changed

+13
-37
lines changed

.github/workflows/update-default.yml

-37
This file was deleted.

.scala-steward.conf

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
postUpdateHooks = [
2+
{
3+
command = ["sbt", "updateYml"],
4+
commitMessage = "Regenerated action.yml",
5+
groupId = "org.scala-sbt",
6+
artifactId = "sbt"
7+
}
8+
]

build.sbt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
TaskKey[Unit]("updateYml") := {
2+
import scala.sys.process.Process
3+
4+
Process("yq", Seq("e", "-i", s""".inputs.sbt-runner-version.default = "${sbtVersion.value}"""", "action.yml")).!
5+
}

0 commit comments

Comments
 (0)