Skip to content

Add workflow

Add workflow #1

Workflow file for this run

name: Run Updated Code Blocks (Scripts)
on:
push:
jobs:
run-code-blocks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Changed files
id: changed-files
uses: tj-actions/changed-files@v45
- uses: grafana/setup-k6-action@v1
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Run Updated Code Blocks
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
python scripts/md-k6.py "$file"
done