Skip to content

Commit 0604b0b

Browse files
committed
minor #1365 Fix GitHub Actions deprecation warnings (rosier)
This PR was squashed before being merged into the main branch. Discussion ---------- Fix GitHub Actions deprecation warnings Deprecation warnings: - Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/cache, actions/checkout, shivammathur/setup-php - The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ - The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ Commits ------- 4aeb755 Fix GitHub Actions deprecation warnings
2 parents bf70bfe + 4aeb755 commit 0604b0b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/lint.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: "Checkout code"
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222

2323
- name: PHP-CS-Fixer
2424
uses: docker://oskarstark/php-cs-fixer-ga
@@ -34,10 +34,10 @@ jobs:
3434

3535
steps:
3636
- name: "Checkout code"
37-
uses: actions/checkout@v2.3.3
37+
uses: actions/checkout@v3
3838

3939
- name: "Install PHP with extensions"
40-
uses: shivammathur/setup-php@2.7.0
40+
uses: shivammathur/setup-php@v2
4141
with:
4242
coverage: "none"
4343
extensions: intl
@@ -46,10 +46,10 @@ jobs:
4646

4747
- name: "Set composer cache directory"
4848
id: composer-cache
49-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
49+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
5050

5151
- name: "Cache composer"
52-
uses: actions/cache@v2.1.2
52+
uses: actions/cache@v3
5353
with:
5454
path: ${{ steps.composer-cache.outputs.dir }}
5555
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}

.github/workflows/tests.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434

3535
steps:
3636
- name: "Checkout code"
37-
uses: actions/checkout@v2.3.3
37+
uses: actions/checkout@v3
3838

3939
- name: "Install PHP with extensions"
40-
uses: shivammathur/setup-php@2.7.0
40+
uses: shivammathur/setup-php@v2
4141
with:
4242
coverage: "none"
4343
extensions: "intl, mbstring, pdo_sqlite"
@@ -49,10 +49,11 @@ jobs:
4949

5050
- name: "Set composer cache directory"
5151
id: composer-cache
52-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
52+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
53+
shell: bash
5354

5455
- name: "Cache composer"
55-
uses: actions/cache@v2.1.2
56+
uses: actions/cache@v3
5657
with:
5758
path: ${{ steps.composer-cache.outputs.dir }}
5859
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('composer.json') }}

0 commit comments

Comments
 (0)