Skip to content

Read PR Body from a local Markdown file #173

Answered by BetaHuhn
CalvinRodo asked this question in Ideas
Discussion options

You must be logged in to vote

There's a file-reader action available which loads the contents of a file and provides them as a output variable which you can pass to this action.

Something like this should work (not tested):

- name: Read file contents
  id: read_file
  uses: andstor/file-reader-action@v1
  with:
    path: "pull_request_body.md"
- name: Run GitHub File Sync
  uses: BetaHuhn/repo-file-sync-action@v1
  with:
    GH_PAT: ${{ secrets.GH_PAT }}
    PR_BODY: ${{ steps.read_file.outputs.contents }}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CalvinRodo
Comment options

Answer selected by CalvinRodo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
resolved Issue or question was resolved/answered
2 participants