Skip to content

Commit d3ed07b

Browse files
authored
[ci] try to fix commit_artifacts step (#27817)
Tries to fix the failure from https://github.com/facebook/react/actions/runs/7142005723/job/19450371514 I think it failed because we cannot `mv` into a folder with existing files or folders.
1 parent f193213 commit d3ed07b

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/commit_artifacts.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -119,26 +119,25 @@ jobs:
119119
build/oss-experimental/react-refresh/cjs/react-refresh-babel.development.js
120120
- name: Move relevant files for React in www into compiled
121121
run: |
122-
mkdir -p ./compiled
123-
mkdir -p ./compiled/facebook-www/__test_utils__
124-
mkdir -p ./compiled/babel-plugin-react-refresh
125-
126-
# Copy the facebook-www folder into compiled
122+
# Move the facebook-www folder into compiled
123+
mkdir ./compiled
127124
mv build/facebook-www ./compiled
128125
129-
# Copy WARNINGS to facebook-www
126+
# Move WARNINGS to facebook-www
127+
mkdir ./compiled/facebook-www/__test_utils__
130128
mv build/WARNINGS ./compiled/facebook-www/WARNINGS
131129
mv build/__test_utils__/ReactAllWarnings.js ./compiled/facebook-www/__test_utils__/ReactAllWarnings.js
132130
133-
# Copy eslint-plugin-react-hooks into facebook-www
131+
# Move eslint-plugin-react-hooks into facebook-www
134132
mv build/oss-experimental/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js \
135133
./compiled/facebook-www/eslint-plugin-react-hooks.js
136134
137-
# Copy unstable_server-external-runtime.js into facebook-www
135+
# Move unstable_server-external-runtime.js into facebook-www
138136
mv build/oss-stable/react-dom/unstable_server-external-runtime.js \
139137
./compiled/facebook-www/unstable_server-external-runtime.js
140138
141-
# Copy react-refresh-babel.development.js into babel-plugin-react-refresh
139+
# Move react-refresh-babel.development.js into babel-plugin-react-refresh
140+
mkdir ./compiled/babel-plugin-react-refresh
142141
mv build/oss-experimental/react-refresh/cjs/react-refresh-babel.development.js \
143142
./compiled/babel-plugin-react-refresh/index.js
144143

0 commit comments

Comments
 (0)