Skip to content

Commit

Permalink
fix: Fixing download-artifact@v4 migration bug
Browse files Browse the repository at this point in the history
  • Loading branch information
steilerDev committed Feb 10, 2025
1 parent e374e30 commit 306d7c7
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/actions/build/docker-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,21 @@ runs:
uses: actions/download-artifact@v4
with:
pattern: ${{ inputs.app-artifact-pattern }}
path: ${{ inputs.docker-path }}/rootfs/opt/
merge-multiple: true
- id: debug
path: ${{ inputs.docker-path }}
- id: select-app-artifact
shell: bash
run: ls -al ${{ inputs.docker-path }}/rootfs/opt/
run: |
if [ -d "${{ inputs.docker-path }}/app-artifact-build" ]; then
ARTIFACT_DIR="${{ inputs.docker-path }}/app-artifact-build"
elif [ -d "${{ inputs.docker-path }}/app-artifact-build" ]; then
ARTIFACT_DIR="${{ inputs.docker-path }}/app-artifact-build"
fi
ARTIFACT="$ARTIFACT_DIR/npm-pack.tgz"
if [ ! -f "$ARTIFACT" ]; then
tree -a .
exit 1
fi
mv $ARTIFACT "${{ inputs.docker-path }}/rootfs/opt/"

0 comments on commit 306d7c7

Please sign in to comment.