Skip to content

v1.2.2

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Nov 12:37
· 5 commits to main since this release

Buy me a coffee
Documentation v1.2.2: https://raw.githack.com/jaywcjlove/github-action-read-file/bfde05a/index.html
Comparing Changes: v1.2.1...v1.2.2

- name: Read README.md
  id: package
  uses: jaywcjlove/github-action-read-file@main
  with:
    path: package.json

- name: Echo package.json
  run: echo "$\{{ steps.package.outputs.content }}"

Specify the branch to read the file content

- name: Read README.md(gh-pages)
  id: ghpages
  uses: jaywcjlove/github-action-read-file@main
  with:
    branch: gh-pages
    path: README.md

- name: Echo README.md(gh-pages)
  run: echo "$\{{ steps.ghpages.outputs.content }}"