Skip to content
play

GitHub Action

EJS Action

v1.3 Latest version

EJS Action

play

EJS Action

Create a file rendering using EJS

Installation

Copy and paste the following snippet into your .yml file.

              

- name: EJS Action

uses: yogonza524/ejs-action@v1.3

Learn more about this action in yogonza524/ejs-action

Choose a version

EJS Action

Create a final file using an ejs file with a JSON variable as

Usage

jobs:
  ejsAction:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Show template file
        run: cat templates/some.ejs
      - name: EJS Action
        uses: yogonza524/ejs-action@v1.3
        with:
          fileTemplate: 'templates/some.ejs'
          variables: '{"name" : "Pepe"}'
          fileOutput: 'templates/output.txt'
      - name: Show output file
        run: cat templates/output.txt

EJS Action