Skip to content

Commit e6d9df2

Browse files
rez1dent3ondrejmirtes
authored andcommitted
Upgrade deprecated set-*
1 parent 2dc5cb0 commit e6d9df2

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ jobs:
5959
- name: "Rector downgrade cache key"
6060
id: rector-cache-key
6161
if: matrix.php-version != '8.1' && matrix.php-version != '8.2'
62-
run: |
63-
echo "::set-output name=sha::$(php build/rector-cache-files-hash.php)"
62+
run: echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT
6463

6564
- name: "Rector downgrade cache"
6665
if: matrix.php-version != '8.1' && matrix.php-version != '8.2'

.github/workflows/phar.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ jobs:
5353

5454
- name: "Rector downgrade cache key"
5555
id: rector-cache-key
56-
run: |
57-
echo "::set-output name=sha::$(php build/rector-cache-files-hash.php)"
56+
run: echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT
5857

5958
- name: "Rector downgrade cache"
6059
uses: actions/cache@v3
@@ -107,7 +106,7 @@ jobs:
107106

108107
- name: "Save checksum"
109108
id: "checksum"
110-
run: echo "::set-output name=md5::$(md5sum tmp/phpstan.phar | cut -d' ' -f1)"
109+
run: echo "md5=$(md5sum tmp/phpstan.phar | cut -d' ' -f1)" >> $GITHUB_OUTPUT
111110

112111
- uses: actions/upload-artifact@v3
113112
with:
@@ -164,7 +163,7 @@ jobs:
164163
- name: "Get previous pushed dist commit"
165164
id: previous-commit
166165
working-directory: phpstan-dist
167-
run: echo ::set-output name=sha::$(sed -n '2p' .phar-checksum)
166+
run: echo "sha=$(sed -n '2p' .phar-checksum)" >> $GITHUB_OUTPUT
168167

169168
- name: "Checkout phpstan-src"
170169
uses: actions/checkout@v3
@@ -175,17 +174,20 @@ jobs:
175174
- name: "Get Git log"
176175
id: git-log
177176
working-directory: phpstan-src
178-
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\//')
177+
run: |
178+
echo "log<<MESSAGE" >> $GITHUB_OUTPUT
179+
echo "$(git log ${{ steps.previous-commit.outputs.sha }}..${{ github.event.after }} --reverse --pretty='https://github.com/phpstan/phpstan-src/commit/%H %s')" >> $GITHUB_OUTPUT
180+
echo 'MESSAGE' >> $GITHUB_OUTPUT
179181
180182
- name: "Check PHAR checksum"
181183
id: checksum-difference
182184
working-directory: phpstan-dist
183185
run: |
184186
checksum=${{needs.compiler-tests.outputs.checksum}}
185187
if [[ $(head -n 1 .phar-checksum) != "$checksum" ]]; then
186-
echo "::set-output name=result::different
188+
echo "result=different" >> $GITHUB_OUTPUT
187189
else
188-
echo "::set-output name=result::same
190+
echo "result=same" >> $GITHUB_OUTPUT
189191
fi
190192
191193
- name: "Download phpstan.phar"

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ jobs:
6666
- name: "Rector downgrade cache key"
6767
id: rector-cache-key
6868
if: matrix.php-version != '8.1' && matrix.php-version != '8.2'
69-
run: |
70-
echo "::set-output name=sha::$(php build/rector-cache-files-hash.php)"
69+
run: echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT
7170

7271
- name: "Rector downgrade cache"
7372
if: matrix.php-version != '8.1' && matrix.php-version != '8.2'

.github/workflows/tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ jobs:
6767
- name: "Rector downgrade cache key"
6868
id: rector-cache-key
6969
if: matrix.php-version != '8.1' && matrix.php-version != '8.2'
70-
run: |
71-
echo "::set-output name=sha::$(php build/rector-cache-files-hash.php)"
70+
run: echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT
7271

7372
- name: "Rector downgrade cache"
7473
if: matrix.php-version != '8.1' && matrix.php-version != '8.2'
@@ -188,8 +187,7 @@ jobs:
188187
- name: "Rector downgrade cache key"
189188
id: rector-cache-key
190189
if: matrix.php-version != '8.1' && matrix.php-version != '8.2'
191-
run: |
192-
echo "::set-output name=sha::$(php build/rector-cache-files-hash.php)"
190+
run: echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT
193191

194192
- name: "Rector downgrade cache"
195193
uses: actions/cache@v3

0 commit comments

Comments
 (0)