@@ -279,7 +279,8 @@ githubWorkflowGenerate := {
279279
280280 def indent (output : String , level : Int ): String = {
281281 val space = (0 until level * 2 ).map(_ => ' ' ).mkString
282- (space + output.replace(" \n " , s " \n $space" )).replaceAll(""" \n[ ]+\n""" , " \n\n " )
282+ (space + output.replace(" \n " , s " \n $space" ))
283+ .replaceAll(""" \n[ ]+\n""" , " \n\n " )
283284 }
284285
285286 val site = {
@@ -297,25 +298,28 @@ githubWorkflowGenerate := {
297298 val yml = baseDirectory.value / " .github" / " workflows" / " site.yml"
298299 val rendered = GenerativePlugin .compileJob(site, sbt)
299300
300- IO .write(yml, s """
301- |# This file was automatically generated by sbt-github-actions using the
302- |# githubWorkflowGenerate task. You should add and commit this file to
303- |# your git repository. It goes without saying that you shouldn't edit
304- |# this file by hand! Instead, if you wish to make changes, you should
305- |# change your sbt build configuration to revise the workflow description
306- |# to meet your needs, then regenerate this file.
307- |
308- |name: Manual Site Generation
309- |
310- |on:
311- | workflow_dispatch:
312- |
313- |env:
314- | GITHUB_TOKEN: $$ {{ secrets.GITHUB_TOKEN }}
315- |
316- |jobs:
317- | ${indent(rendered, 1 )}
318- | """ .stripMargin)
301+ IO .write(
302+ yml,
303+ s """
304+ |# This file was automatically generated by sbt-github-actions using the
305+ |# githubWorkflowGenerate task. You should add and commit this file to
306+ |# your git repository. It goes without saying that you shouldn't edit
307+ |# this file by hand! Instead, if you wish to make changes, you should
308+ |# change your sbt build configuration to revise the workflow description
309+ |# to meet your needs, then regenerate this file.
310+ |
311+ |name: Manual Site Generation
312+ |
313+ |on:
314+ | workflow_dispatch:
315+ |
316+ |env:
317+ | GITHUB_TOKEN: $$ {{ secrets.GITHUB_TOKEN }}
318+ |
319+ |jobs:
320+ | ${indent(rendered, 1 )}
321+ | """ .stripMargin,
322+ )
319323
320324 githubWorkflowGenerate.value
321325}
0 commit comments