Read PR Body from a local Markdown file #173
Answered
by
BetaHuhn
CalvinRodo
asked this question in
Ideas
-
I'm looking at using this in my org to enforce some standard workflows, I'd like to be able to provide a file for the PR Body as my PR message is going to be quite big and it's a little unruly to manage it the way it currently works. |
Beta Was this translation helpful? Give feedback.
Answered by
BetaHuhn
Feb 18, 2022
Replies: 1 comment 1 reply
-
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 }} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
CalvinRodo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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):