Procházet zdrojové kódy

Use GITHUB_OUTPUT envvar instead of set-output command as the latter is deprecated (#1864)

* Use GITHUB_OUTPUT envvar instead of set-output command as the latter is deprecated

* Quote envvar to match documentation
Arun Sathiya před 1 rokem
rodič
revize
000fedbcf2
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      .github/workflows/phpstan.yml

+ 2 - 2
.github/workflows/phpstan.yml

@@ -34,7 +34,7 @@ jobs:
 
       - name: Get composer cache directory
         id: composercache
-        run: echo "::set-output name=dir::$(composer config cache-files-dir)"
+        run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
 
       - name: Cache dependencies
         uses: actions/cache@v3
@@ -44,7 +44,7 @@ jobs:
           restore-keys: ${{ runner.os }}-composer-
 
       - name: Add require for mongodb/mongodb to make tests runnable
-        run: 'composer require ${{ env.COMPOSER_FLAGS }} mongodb/mongodb --dev --no-update'
+        run: "composer require ${{ env.COMPOSER_FLAGS }} mongodb/mongodb --dev --no-update"
 
       - name: "Install latest dependencies"
         run: "composer update ${{ env.COMPOSER_FLAGS }}"