Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
federicotdn committed Dec 23, 2024
1 parent de47a91 commit b07c8f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/run-code-blocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
- name: Get Changed files
id: changed-files
uses: tj-actions/changed-files@v45
files: |
**.md
- uses: grafana/setup-k6-action@v1
- uses: actions/setup-python@v5
with:
Expand Down
2 changes: 2 additions & 0 deletions scripts/md-k6.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def main() -> None:
parser.add_argument("--lang", default="javascript", help="Code block language.")
args = parser.parse_args()

print("Reading from file:", args.file.name)

lang = args.lang
text = args.file.read()
# Replace magic comment + "```{lang}" with "```{lang}${options}"
Expand Down

0 comments on commit b07c8f2

Please sign in to comment.