Skip to content
file

GitHub Action

Read file

v1.1.7 Latest version

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.7

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

Choose a version

read-file-action

Read file contents.

Usage

steps:
  - name: Checkout repository
    uses: actions/checkout@v3
  - name: Read package.json
    id: package
    uses: juliangruber/read-file-action@v1
    with:
      path: ./package.json
  - name: Echo package.json
    run: echo "${{ steps.package.outputs.content }}"

License

MIT