Skip to content

Commit 7ccb1e1

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Avoid the creation of separate folders for separate artifacts (facebook#49760)
Summary: When downloading artifacts using a pattern, GHA, by default, creates a folder for each artifacts and copies the artifacts in that folder. This breaks the maven publishing which expects the artifacts in the `artifact` folder and not i a subfolder. The `merge-multiple` option allow for the artifacts to be downloaded in the specified folder, without the extra folder in the path ## Changelog: [Internal] - Avoid the creation of intermediate folder when downloading the artifacts Pull Request resolved: facebook#49760 Test Plan: GHA <img width="791" alt="Screenshot 2025-03-02 at 11 08 33" src="https://github.com/user-attachments/assets/cfc85b27-117f-4d21-97ef-67493615a5a1" /> Reviewed By: fabriziocucci Differential Revision: D70462254 Pulled By: cipolleschi fbshipit-source-id: ed310a90bcdea55e466d4d71942a25abc6e6986a
1 parent 21c85ef commit 7ccb1e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/actions/build-npm-package/action.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ runs:
105105
uses: actions/download-artifact@v4
106106
with:
107107
pattern: ReactNativeDependencies*
108-
path: ./packages/react-native/ReactAndroid/external-artifacts/artifacts/
108+
path: ./packages/react-native/ReactAndroid/external-artifacts/artifacts
109+
merge-multiple: true
109110
- name: Print Artifacts Directory
110111
shell: bash
111112
run: ls -lR ./packages/react-native/ReactAndroid/external-artifacts/artifacts/

0 commit comments

Comments
 (0)