Skip to content

Commit

Permalink
Correct save artifacts step in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
datalogics-saharay committed Mar 13, 2024
1 parent 15c4801 commit 795725f
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/test-dotnet-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,24 +159,27 @@ jobs:
echo "Not available on this os"
fi
fi
- name: List sample output files
- name: Set output variable
id: set-sample-name
working-directory: ${{matrix.dir}}
run: |
ls ${{ github.workspace}}/
sample_name=$(basename "$PWD")
echo "::set-output name=sample_name::$sample_name"
- name: Save artifacts
uses: actions/upload-artifact@v4
with:
name: output-${{ runner.os }}-${{matrix.dir}}
name: output-${{ runner.os }}-${{ steps.set-sample-name.outputs.sample_name }}
path: |
**.docx
**.xslx
**.pptx
**.pdf
**.tif
**.png
**.jpg
**.eps
**.tiff
**.bmp
**.gif
**.json
**.txt
**/*.docx
**/*.xslx
**/*.pptx
**/*.pdf
**/*.tif
**/*.png
**/*.jpg
**/*.eps
**/*.tiff
**/*.bmp
**/*.gif
**/*.json
**/*.txt

0 comments on commit 795725f

Please sign in to comment.