Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deprecated set-output to $GITHUB_OUTPUT #1910

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
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)"
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'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: "Rector downgrade cache key"
id: rector-cache-key
run: |
echo "::set-output name=sha::$(php build/rector-cache-files-hash.php)"
echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT

- name: "Rector downgrade cache"
uses: actions/cache@v3
Expand Down Expand Up @@ -107,7 +107,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:
Expand Down Expand Up @@ -164,7 +164,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
Expand All @@ -175,17 +175,17 @@ 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=$(git log ${{ steps.previous-commit.outputs.sha }}..${{ github.event.after }} --reverse --pretty='%H %s' | sed -e 's/^/https:\/\/github.com\/phpstan\/phpstan-src\/commit\//')" >> $GITHUB_OUTPUT

- name: "Check PHAR checksum"
id: checksum-difference
working-directory: phpstan-dist
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"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
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)"
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'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
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)"
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'
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
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)"
echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT

- name: "Rector downgrade cache"
uses: actions/cache@v3
Expand Down