You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
RST Substitution
v1.4.0
Github action to replace substitutions in rst file using varST.
Refer example workflow if you want to replace substitutions in README.rst
and push it to repository.
steps: - uses: actions/checkout@v3 - name: Replace substitution - uses: junghoon-vans/varst-action@v1.4.0 with: substitutions: 'name=value' - uses: stefanzweifel/git-auto-commit-action@v4
Full example is here.
Optional The file path to read contents.
Default: ./README.rst
Optional The file path to write contents.
Default: input-file
Required A key-value of substitutions.
Note The value must be enclosed in single quotes.
If multiple values need to be defined, use folded block scalar style.
substitutions: >-
'name1=value1'
'name2=value2'
...
Optional The version of varST to use.
If not specified, the latest version will be used.