diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index de0384da4e..9fc4feecd2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -59,8 +59,7 @@ jobs: - name: "Rector downgrade cache key" id: rector-cache-key if: matrix.php-version != '8.1' && matrix.php-version != '8.2' - run: | - echo "::set-output name=sha::$(php build/rector-cache-files-hash.php)" + run: echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT - name: "Rector downgrade cache" if: matrix.php-version != '8.1' && matrix.php-version != '8.2' diff --git a/.github/workflows/phar.yml b/.github/workflows/phar.yml index 580c43d5c0..4773a91be8 100644 --- a/.github/workflows/phar.yml +++ b/.github/workflows/phar.yml @@ -53,8 +53,7 @@ jobs: - name: "Rector downgrade cache key" id: rector-cache-key - run: | - echo "::set-output name=sha::$(php build/rector-cache-files-hash.php)" + run: echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT - name: "Rector downgrade cache" uses: actions/cache@v3 @@ -107,7 +106,7 @@ jobs: - name: "Save checksum" id: "checksum" - run: echo "::set-output name=md5::$(md5sum tmp/phpstan.phar | cut -d' ' -f1)" + run: echo "md5=$(md5sum tmp/phpstan.phar | cut -d' ' -f1)" >> $GITHUB_OUTPUT - uses: actions/upload-artifact@v3 with: @@ -164,7 +163,7 @@ jobs: - name: "Get previous pushed dist commit" id: previous-commit working-directory: phpstan-dist - run: echo ::set-output name=sha::$(sed -n '2p' .phar-checksum) + run: echo "sha=$(sed -n '2p' .phar-checksum)" >> $GITHUB_OUTPUT - name: "Checkout phpstan-src" uses: actions/checkout@v3 @@ -175,7 +174,10 @@ jobs: - name: "Get Git log" id: git-log working-directory: phpstan-src - run: echo ::set-output name=log::$(git log ${{ steps.previous-commit.outputs.sha }}..${{ github.event.after }} --reverse --pretty='%H %s' | sed -e 's/^/https:\/\/github.com\/phpstan\/phpstan-src\/commit\//') + run: | + echo "log<> $GITHUB_OUTPUT + echo "$(git log ${{ steps.previous-commit.outputs.sha }}..${{ github.event.after }} --reverse --pretty='https://github.com/phpstan/phpstan-src/commit/%H %s')" >> $GITHUB_OUTPUT + echo 'MESSAGE' >> $GITHUB_OUTPUT - name: "Check PHAR checksum" id: checksum-difference @@ -183,9 +185,9 @@ jobs: run: | checksum=${{needs.compiler-tests.outputs.checksum}} if [[ $(head -n 1 .phar-checksum) != "$checksum" ]]; then - echo "::set-output name=result::different + echo "result=different" >> $GITHUB_OUTPUT else - echo "::set-output name=result::same + echo "result=same" >> $GITHUB_OUTPUT fi - name: "Download phpstan.phar" diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 8f96fb544d..0cc8d0783f 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -66,8 +66,7 @@ jobs: - name: "Rector downgrade cache key" id: rector-cache-key if: matrix.php-version != '8.1' && matrix.php-version != '8.2' - run: | - echo "::set-output name=sha::$(php build/rector-cache-files-hash.php)" + run: echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT - name: "Rector downgrade cache" if: matrix.php-version != '8.1' && matrix.php-version != '8.2' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e8756cd2bb..413a2d6ee6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -67,8 +67,7 @@ jobs: - name: "Rector downgrade cache key" id: rector-cache-key if: matrix.php-version != '8.1' && matrix.php-version != '8.2' - run: | - echo "::set-output name=sha::$(php build/rector-cache-files-hash.php)" + run: echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT - name: "Rector downgrade cache" if: matrix.php-version != '8.1' && matrix.php-version != '8.2' @@ -188,8 +187,7 @@ jobs: - name: "Rector downgrade cache key" id: rector-cache-key if: matrix.php-version != '8.1' && matrix.php-version != '8.2' - run: | - echo "::set-output name=sha::$(php build/rector-cache-files-hash.php)" + run: echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT - name: "Rector downgrade cache" uses: actions/cache@v3