Skip to content

Commit

Permalink
here goes nothin
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Sep 10, 2024
1 parent 850e26a commit a7aa8af
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/testdriver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
matrix:
markdown: ${{ fromJson(needs.gather-markdown-files.outputs.markdown_files) }}
name: TestDriver - ${{ matrix.markdown }} # Using just the filename
name: ${{ matrix.markdown }} # Using just the filename
steps:
- name: Check out repository
uses: actions/checkout@v2
Expand All @@ -39,11 +39,18 @@ jobs:
run: |
echo "Running job for file: ${{ matrix.markdown }}"
- name: Read file content into environment variable
id: read_file
run: |
CONTENT=$(cat ./testdriver/.generate/${{ matrix.markdown }})
echo "MARKDOWN_CONTENT<<EOF" >> $GITHUB_ENV
echo "$CONTENT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- uses: testdriverai/action@main
with:
key: ${{ secrets.TESTDRIVER_API_KEY }}
prompt: |
$(cat ./testdriver/.generate/${{ matrix.markdown }})
prompt: ${{ env.MARKDOWN_CONTENT }} # Use the content of the file from the environment
prerun: |
cd $env:TEMP
npm init -y
Expand Down

0 comments on commit a7aa8af

Please sign in to comment.