Skip to content

Commit

Permalink
extract name further from artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Dec 17, 2024
1 parent d3ac7ba commit 991372c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -650,13 +650,15 @@ jobs:
echo $NAME_FROM_MATRIX
for artifact in ./artifacts/*; do
echo $artifact
PACKAGE_NAME=$(basename $artifact .json)
ARTIFACT_NAME=$(basename $artifact .json)
echo $ARTIFACT_NAME
PACKAGE_NAME="${ARTIFACT_NAME#compilation_artifact_}"
echo $PACKAGE_NAME
if [[ "$PACKAGE_NAME" == "$NAME_FROM_MATRIX" ]]; then
echo "got here"
mkdir ./test-repo/${{ matrix.project.path }}/target
mv $artifact ./test-repo/${{ matrix.project.path }}/target/$PACKAGE_NAME.json
mkdir ./test-repo/${{ matrix.project.path }}/target
cp $artifact $PACKAGE_NAME.json
mv $PACKAGE_NAME.json ./test-repo/${{ matrix.project.path }}/target/$PACKAGE_NAME.json
break
fi
ls ./test-repo/${{ matrix.project.path }}
Expand Down

0 comments on commit 991372c

Please sign in to comment.