Skip to content

Commit

Permalink
Fixed a minor script issue in the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
devanshkansagra committed Sep 9, 2024
1 parent f9df020 commit 1b507d9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ jobs:
- name: Prepare Build for UI-Elements
if: steps.changes.outputs.ui-elements == 'true'
run: |
if [ '$(ls -A build/pulls/${{github.event.number}})/' ]; then
mkdir -p build/pulls/${{github.event.number}}/ui-elements
mv -v packages/ui-elements/storybook-static/* build/pulls/${{github.event.number}}/ui-elements
else
mv -v packages/ui-elements/storybook-static/* build/pulls/${{github.event.number}}/
fi
if [ -z "$(ls -A build/pulls/${{github.event.number}})" ]; then
mv -v packages/ui-elements/storybook-static/* build/pulls/${{github.event.number}}/
else
mkdir -p build/pulls/${{github.event.number}}/ui-elements
mv -v packages/ui-elements/storybook-static/* build/pulls/${{github.event.number}}/ui-elements/
fi
- name: Upload Artifacts
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 1b507d9

Please sign in to comment.