Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 2d93509

Browse files
Update build action to address warnings
Several changes are recommended by GitHub. Updates to latest versions.
1 parent bc107bb commit 2d93509

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ jobs:
4343
git log -1 | cat
4444
- name: Get yarn cache directory path
4545
id: yarn-cache-dir-path
46-
run: echo "::set-output name=dir::$(yarn cache dir)"
46+
run: echo "yarn_cache_dir=$(yarn cache dir)" >> $GITHUB_ENV
4747
- name: Yarn and maven cache
4848
uses: actions/cache@v3
4949
with:
5050
path: |
51-
${{ steps.yarn-cache-dir-path.outputs.dir }}
51+
${{ env.yarn_cache_dir }}
5252
~/.m2/repository
5353
key: ${{ runner.os }}-yarn-mvn-java11-${{ hashFiles('**/yarn.lock', '**/pom.xml') }}
5454
- name: Install packages
@@ -102,23 +102,23 @@ jobs:
102102
tar -xf upx-$UPX_VERSION-amd64_linux.tar.xz
103103
mv ./upx-$UPX_VERSION-amd64_linux/upx /usr/local/bin/upx
104104
- name: Download compiler jar
105-
uses: actions/download-artifact@v2
105+
uses: actions/download-artifact@v3
106106
with:
107107
name: Compiler.jar
108108
path: packages/google-closure-compiler-java/
109109
- name: Download contrib folder
110-
uses: actions/download-artifact@v2
110+
uses: actions/download-artifact@v3
111111
with:
112112
name: Contrib folder
113113
path: packages/google-closure-compiler/contrib
114114
- name: Get yarn cache directory path
115115
id: yarn-cache-dir-path
116-
run: echo "::set-output name=dir::$(yarn cache dir)"
116+
run: echo "yarn_cache_dir=$(yarn cache dir)" >> $GITHUB_ENV
117117
- name: Cache yarn
118118
uses: actions/cache@v3
119119
id: yarn-cache
120120
with:
121-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
121+
path: ${{ env.yarn_cache_dir }}
122122
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
123123
restore-keys: |
124124
${{ runner.os }}-yarn-
@@ -168,23 +168,23 @@ jobs:
168168
- name: Install upx
169169
run: brew install upx
170170
- name: Download compiler jar
171-
uses: actions/download-artifact@v2
171+
uses: actions/download-artifact@v3
172172
with:
173173
name: Compiler.jar
174174
path: packages/google-closure-compiler-java/
175175
- name: Download contrib folder
176-
uses: actions/download-artifact@v2
176+
uses: actions/download-artifact@v3
177177
with:
178178
name: Contrib folder
179179
path: packages/google-closure-compiler/contrib
180180
- name: Get yarn cache directory path
181181
id: yarn-cache-dir-path
182-
run: echo "::set-output name=dir::$(yarn cache dir)"
182+
run: echo "yarn_cache_dir=$(yarn cache dir)" >> $GITHUB_ENV
183183
- name: Cache yarn
184184
uses: actions/cache@v3
185185
id: yarn-cache
186186
with:
187-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
187+
path: ${{ env.yarn_cache_dir }}
188188
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
189189
restore-keys: |
190190
${{ runner.os }}-yarn-
@@ -232,23 +232,23 @@ jobs:
232232
components: 'native-image'
233233
github-token: ${{ secrets.GITHUB_TOKEN }}
234234
- name: Download compiler jar
235-
uses: actions/download-artifact@v2
235+
uses: actions/download-artifact@v3
236236
with:
237237
name: Compiler.jar
238238
path: packages/google-closure-compiler-java/
239239
- name: Download contrib folder
240-
uses: actions/download-artifact@v2
240+
uses: actions/download-artifact@v3
241241
with:
242242
name: Contrib folder
243243
path: packages/google-closure-compiler/contrib
244244
- name: Get yarn cache directory path
245245
id: yarn-cache-dir-path
246-
run: echo "::set-output name=dir::$(yarn cache dir)"
246+
run: echo "yarn_cache_dir=$(yarn cache dir)" >> $GITHUB_ENV
247247
- name: Cache yarn
248248
uses: actions/cache@v3
249249
id: yarn-cache
250250
with:
251-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
251+
path: ${{ env.yarn_cache_dir }}
252252
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
253253
restore-keys: |
254254
${{ runner.os }}-yarn-
@@ -292,27 +292,27 @@ jobs:
292292
node-version: ${{ env.NODE_VERSION }}
293293
registry-url: https://registry.npmjs.org/
294294
- name: Download compiler jar
295-
uses: actions/download-artifact@v2
295+
uses: actions/download-artifact@v3
296296
with:
297297
name: Compiler.jar
298298
path: packages/google-closure-compiler-java/
299299
- name: Download Linux image
300-
uses: actions/download-artifact@v2
300+
uses: actions/download-artifact@v3
301301
with:
302302
name: Linux image
303303
path: packages/google-closure-compiler-linux/
304304
- name: Download MacOS image
305-
uses: actions/download-artifact@v2
305+
uses: actions/download-artifact@v3
306306
with:
307307
name: MacOS image
308308
path: packages/google-closure-compiler-osx/
309309
- name: Download Windows image
310-
uses: actions/download-artifact@v2
310+
uses: actions/download-artifact@v3
311311
with:
312312
name: Windows image
313313
path: packages/google-closure-compiler-windows/
314314
- name: Download contrib folder
315-
uses: actions/download-artifact@v2
315+
uses: actions/download-artifact@v3
316316
with:
317317
name: Contrib folder
318318
path: packages/google-closure-compiler/contrib
@@ -323,12 +323,12 @@ jobs:
323323
chmod 755 packages/google-closure-compiler-windows/compiler.exe
324324
- name: Get yarn cache directory path
325325
id: yarn-cache-dir-path
326-
run: echo "::set-output name=dir::$(yarn cache dir)"
326+
run: echo "yarn_cache_dir=$(yarn cache dir)" >> $GITHUB_ENV
327327
- name: Cache yarn
328328
uses: actions/cache@v3
329329
id: yarn-cache
330330
with:
331-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
331+
path: ${{ env.yarn_cache_dir }}
332332
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
333333
restore-keys: |
334334
${{ runner.os }}-yarn-

0 commit comments

Comments
 (0)