Works with pandoc #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Works with pandoc | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**/README.md" | |
- LICENSE | |
schedule: | |
# At 09:00am each Monday | |
- cron: "0 9 * * 1" | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
env: | |
TARGET_FILE: test.md | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Run pandoc | |
uses: docker://pandoc/core:latest | |
with: | |
args: >- # allows you to break string into multiple lines | |
--lua-filter curly-switch.lua | |
-t markdown | |
-o ${{ env.TARGET_FILE }} | |
test/info.md | |
- name: Check variables replacement | |
run: >- | |
grep -q "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" ${TARGET_FILE} && | |
grep -q "lua" ${TARGET_FILE} && | |
grep -q "Apache License, 2.0" ${TARGET_FILE} && | |
grep -q "Claudio Di Vita" ${TARGET_FILE} |