Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
federicotdn committed Dec 23, 2024
1 parent b9efb64 commit de47a91
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/run-code-blocks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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

0 comments on commit de47a91

Please sign in to comment.