Skip to content

Commit

Permalink
Merge pull request #37 from mzuehlke/postUpdateHooks
Browse files Browse the repository at this point in the history
Use Scala Steward postUpdateHooks to update action.yml
  • Loading branch information
eed3si9n authored Jan 20, 2025
2 parents 75854e7 + 236358a commit 8d658e0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/update-default.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .scala-steward.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
postUpdateHooks = [
{
command = ["sbt", "updateYml"],
commitMessage = "Regenerated action.yml",
groupId = "org.scala-sbt",
artifactId = "sbt"
}
]
5 changes: 5 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
TaskKey[Unit]("updateYml") := {
import scala.sys.process.Process

Process("yq", Seq("e", "-i", s""".inputs.sbt-runner-version.default = "${sbtVersion.value}"""", "action.yml")).!
}

0 comments on commit 8d658e0

Please sign in to comment.