]> source.dussan.org Git - jquery-ui.git/commitdiff
Build: Stop using ::set-output in GitHub Actions
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Thu, 30 Mar 2023 08:17:02 +0000 (10:17 +0200)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 10 May 2023 08:53:57 +0000 (10:53 +0200)
The `set-output` workflow is deprecated in favor of using environment
variables, see:
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

.github/workflows/test.yml

index 1708fb236139deb499ffc90125878c0e5c24ae10..868352dd1fab8be15f3411ebb87d9454be4c62ec 100644 (file)
@@ -25,7 +25,7 @@ jobs:
       - name: Get npm cache directory
         id: npm-cache-dir
         run: |
-          echo "::set-output name=dir::$(npm config get cache)"
+          echo "dir=\"$(npm config get cache)\"" >> $GITHUB_OUTPUT
 
       - name: Cache npm dependencies
         uses: actions/cache@v3