Movatterモバイル変換


[0]ホーム

URL:


top
Create Tag<sup>2.0.0</sup> logoCreate Tag2.0.0

Action EJS

Buy me a coffeeCITEST

A github action to render aejs template using github context

Usage

-name: action-ejsuses: jaywcjlove/action-ejs@mainwith:template: <h1><%= name %> <span><%= conclusion %></span></h1>vars:|      { "name": "${{ github.repository }}", "conclusion": "${{ steps.ejs.conclusion }}" }
-name: action-ejsuses: jaywcjlove/action-ejs@mainwith:template: <div><%= LICENSE %></div><div><%= markdown %></div>output: build/demo.htmlvars-file:|      {        "markdown": "./README.md",        "LICENSE": "./LICENSE"      }
-name: action-ejsuses: jaywcjlove/action-ejs@mainwith:template-file: template/demo.htmloutput: build/template/demo.htmlvars:|      { "htmlContent": "${{ env.GITHUB_REF }}" }

Following objects are exposed, and can be used in template file:

-name: action-ejsuses: jaywcjlove/action-ejs@mainwith:template:|      <h1><%= env.GITHUB_REF %></h1> commiter: <%= context.payload.head_commit.author.name %>

Inputs

Outputs

See Also

Contributors

As always, thanks to our amazing contributors!

Made withaction-contributors.

License

Licensed under the MIT License.

SponsorCreate TagContributorsRead File ContentGenerated Badges
Released under the MIT License. Copyright © 2024 Kenny Wong
Generated byidoc v1.31.0

[8]ページ先頭

©2009-2025 Movatter.jp