Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
file

GitHub Action

Read file

v1.1.0

Read file

file

Read file

Read file contents

Installation

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

              

- name: Read file

uses: juliangruber/read-file-action@v1.1.0

Learn more about this action in juliangruber/read-file-action

Choose a version

read-file-action

Read file contents.

Usage

steps:
  - name: Read package.json
    id: package
    uses: juliangruber/read-file-action@v1
    with:
      path: ./package.json
      trim: false
  - name: Echo package.json
    run: echo ${{ steps.package.outputs.content }}

License

MIT