From 7ccb1e1fb0356dca482aaaa61b4e76fd5fe7be52 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Mon, 3 Mar 2025 02:10:15 -0800 Subject: [PATCH] Avoid the creation of separate folders for separate artifacts (#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: https://github.com/facebook/react-native/pull/49760 Test Plan: GHA Screenshot 2025-03-02 at 11 08 33 Reviewed By: fabriziocucci Differential Revision: D70462254 Pulled By: cipolleschi fbshipit-source-id: ed310a90bcdea55e466d4d71942a25abc6e6986a --- .github/actions/build-npm-package/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/build-npm-package/action.yml b/.github/actions/build-npm-package/action.yml index dc66f0c3c0f..e68f4c1e35e 100644 --- a/.github/actions/build-npm-package/action.yml +++ b/.github/actions/build-npm-package/action.yml @@ -105,7 +105,8 @@ runs: uses: actions/download-artifact@v4 with: pattern: ReactNativeDependencies* - path: ./packages/react-native/ReactAndroid/external-artifacts/artifacts/ + path: ./packages/react-native/ReactAndroid/external-artifacts/artifacts + merge-multiple: true - name: Print Artifacts Directory shell: bash run: ls -lR ./packages/react-native/ReactAndroid/external-artifacts/artifacts/