修改流水线:md渲染
GitHub Action that parses a markdown file to action output. Supports frontmatter and templating.
name: Markdown to Output on: push jobs: markdown-output: name: Markdown to Output runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: markpatterson27/markdown-to-output@v1 id: mto with: filepath: examples/project.md - run: | echo ${{ steps.mto.outputs.attributes }} echo ${{ steps.mto.outputs.body }}
filepath
attributes
body
Additionally, each attribute name will have it’s own output.
if just looking to read file contents to step output
- id: read-file run: echo "::set-output name=contents::$(cat filename.txt)" # doesn't remove CR. does remove LF :(
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
Markdown to Output Action
GitHub Action that parses a markdown file to action output. Supports frontmatter and templating.
Usage
Inputs
filepathOutputs
attributesbodyAdditionally, each attribute name will have it’s own output.
Similar projects / Inspiration
if just looking to read file contents to step output