Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2
A github action to render a ejs template using github context
License
NotificationsYou must be signed in to change notification settings
jaywcjlove/action-ejs
Use this GitHub action with your project
Add this Action to an existing workflow or create a new oneFolders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A github action to render aejs template using github context
-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:
context: TheContext object in@actions/githubprocess: Theprocess.envobject. You can access the environment variables withenv.<key>
-name:action-ejsuses:jaywcjlove/action-ejs@mainwith:template:| <h1><%= env.GITHUB_REF%></h1> commiter: <%= context.payload.head_commit.author.name%>
templateInput ESJ template string.template-fileInput ESJ template file path.varsInput variables. A dictionary of variables in JSON format to be used in the template.default: '{}'vars-fileRead the contents of the file into avars.default: '{}'optionsA JSON format string of options to be passed to the template engine.default: '{}'outputoutput html pathdefault: build/index.html
contenttemplate render result:<!DOCTYPE html><html lang="en">.....
- Github Release Changelog Generator A GitHub Action that compares the commit differences between two branches
- Create Tags From Auto create tags from commit or package.json.
- Github Action Contributors Github action generates dynamic image URL for contributor list to display it!
- Generated Badges Create a badge using GitHub Actions and GitHub Workflow CPU time (no 3rd parties servers)
- Create Coverage Badges Create coverage badges from coverage reports. (no 3rd parties servers)
- Github Action package Read and modify the contents of
package.json.
As always, thanks to our amazing contributors!
Made withaction-contributors.
Licensed under the MIT License.
About
A github action to render a ejs template using github context
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.