7
7
name : PR Test
8
8
9
9
on :
10
- # The `GITHUB_TOKEN` in workflows triggered by the `pull_request_target` event
11
- # is granted read/write repository access.
12
- # Please pay attention to limit the permissions of each job!
13
- # https://docs.github.com/actions/using-jobs/assigning-permissions-to-jobs
14
- pull_request_target :
10
+ pull_request :
15
11
branches :
16
12
- main
17
13
@@ -112,14 +108,14 @@ jobs:
112
108
113
109
working-directory : ${{ github.workspace }}/mdn/content
114
110
run : |
115
- mkdir -p ${ BUILD_OUT_ROOT}
111
+ mkdir -p $BUILD_OUT_ROOT
116
112
117
113
# Don't use `yarn build` (from mdn/content) because that one hardcodes
118
114
# the BUILD_OUT_ROOT and CONTENT_ROOT env vars.
119
115
node node_modules/@mdn/yari/build/cli.js ${GIT_DIFF_CONTENT}
120
116
121
117
echo "Disk usage size of build"
122
- du -sh ${ BUILD_OUT_ROOT}
118
+ du -sh $BUILD_OUT_ROOT
123
119
124
120
# Save the PR number into the build
125
121
echo ${{ github.event.number }} > ${BUILD_OUT_ROOT}/NR
@@ -139,7 +135,7 @@ jobs:
139
135
# Exclude the .map files, as they're used for debugging JS and CSS.
140
136
rsync -a --exclude "*.map" ${{ github.workspace }}/mdn/content/node_modules/@mdn/yari/client/build/ ${BUILD_OUT_ROOT}
141
137
# Show the final disk usage size of the build.
142
- du -sh ${ BUILD_OUT_ROOT}
138
+ du -sh $BUILD_OUT_ROOT
143
139
144
140
- uses : actions/upload-artifact@v4
145
141
if : env.GIT_DIFF_CONTENT
@@ -154,16 +150,6 @@ jobs:
154
150
CONTENT_TRANSLATED_ROOT : ${{ github.workspace }}/files
155
151
working-directory : ${{ github.workspace }}/mdn/content
156
152
run : |
157
- echo ${GIT_DIFF_FILES}
158
-
159
- yarn filecheck ${GIT_DIFF_FILES}
160
-
161
- review :
162
- needs : tests
163
- if : needs.tests.outputs.has_assets
164
- # write permissions are required to create a comment in the corresponding PR
165
- permissions : write-all
166
- uses : ./.github/workflows/pr-review-companion.yml
167
- # inherit the secrets from the parent workflow
168
- # https://docs.github.com/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow
169
- secrets : inherit
153
+ echo $GIT_DIFF_FILES
154
+
155
+ yarn filecheck $GIT_DIFF_FILES
0 commit comments