mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
Update workflows to use non-deprecated method offf setting step output
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
This commit is contained in:
parent
375e5da288
commit
c7ef4580c3
4
.github/workflows/bcc.yml
vendored
4
.github/workflows/bcc.yml
vendored
@ -20,8 +20,8 @@ jobs:
|
||||
- name: Get Composer Cache Directories
|
||||
id: composer-cache
|
||||
run: |
|
||||
echo "::set-output name=files_cache::$(composer config cache-files-dir)"
|
||||
echo "::set-output name=vcs_cache::$(composer config cache-vcs-dir)"
|
||||
echo "files_cache=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
echo "vcs_cache=$(composer config cache-vcs-dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache composer cache
|
||||
uses: actions/cache@v3
|
||||
|
4
.github/workflows/build-phar.yml
vendored
4
.github/workflows/build-phar.yml
vendored
@ -49,8 +49,8 @@ jobs:
|
||||
- name: Get Composer Cache Directories
|
||||
id: composer-cache
|
||||
run: |
|
||||
echo "::set-output name=files_cache::$(composer config cache-files-dir)"
|
||||
echo "::set-output name=vcs_cache::$(composer config cache-vcs-dir)"
|
||||
echo "files_cache=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
echo "vcs_cache=$(composer config cache-vcs-dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache composer cache
|
||||
uses: actions/cache@v3
|
||||
|
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -21,8 +21,8 @@ jobs:
|
||||
- name: Get Composer Cache Directories
|
||||
id: composer-cache
|
||||
run: |
|
||||
echo "::set-output name=files_cache::$(composer config cache-files-dir)"
|
||||
echo "::set-output name=vcs_cache::$(composer config cache-vcs-dir)"
|
||||
echo "files_cache=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
echo "vcs_cache=$(composer config cache-vcs-dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache composer cache
|
||||
uses: actions/cache@v3
|
||||
@ -58,8 +58,8 @@ jobs:
|
||||
- id: chunk-matrix
|
||||
name: Generates the Chunk Matrix
|
||||
run: |
|
||||
echo "::set-output name=count::$(php -r 'echo json_encode([ ${{ env.CHUNK_COUNT }} ]);')"
|
||||
echo "::set-output name=chunks::$(php -r 'echo json_encode(range(1, ${{ env.CHUNK_COUNT }} ));')"
|
||||
echo "count=$(php -r 'echo json_encode([ ${{ env.CHUNK_COUNT }} ]);')" >> $GITHUB_OUTPUT
|
||||
echo "chunks=$(php -r 'echo json_encode(range(1, ${{ env.CHUNK_COUNT }} ));')" >> $GITHUB_OUTPUT
|
||||
|
||||
tests:
|
||||
name: "Unit Tests - ${{ matrix.chunk }}"
|
||||
@ -94,8 +94,8 @@ jobs:
|
||||
- name: Get Composer Cache Directories
|
||||
id: composer-cache
|
||||
run: |
|
||||
echo "::set-output name=files_cache::$(composer config cache-files-dir)"
|
||||
echo "::set-output name=vcs_cache::$(composer config cache-vcs-dir)"
|
||||
echo "files_cache=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
echo "vcs_cache=$(composer config cache-vcs-dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache composer cache
|
||||
uses: actions/cache@v3
|
||||
|
8
.github/workflows/windows-ci.yml
vendored
8
.github/workflows/windows-ci.yml
vendored
@ -23,8 +23,8 @@ jobs:
|
||||
- id: chunk-matrix
|
||||
name: Generates the Chunk Matrix
|
||||
run: |
|
||||
echo "::set-output name=count::$(php -r 'echo json_encode([ ${{ env.CHUNK_COUNT }} ]);')"
|
||||
echo "::set-output name=chunks::$(php -r 'echo json_encode(range(1, ${{ env.CHUNK_COUNT }} ));')"
|
||||
echo "count=$(php -r 'echo json_encode([ ${{ env.CHUNK_COUNT }} ]);')" >> $GITHUB_OUTPUT
|
||||
echo "chunks=$(php -r 'echo json_encode(range(1, ${{ env.CHUNK_COUNT }} ));')" >> $GITHUB_OUTPUT
|
||||
|
||||
tests:
|
||||
name: "Unit Tests - ${{ matrix.chunk }}"
|
||||
@ -64,8 +64,8 @@ jobs:
|
||||
- name: Get Composer Cache Directories
|
||||
id: composer-cache
|
||||
run: |
|
||||
echo "::set-output name=files_cache::$(composer config cache-files-dir)"
|
||||
echo "::set-output name=vcs_cache::$(composer config cache-vcs-dir)"
|
||||
echo "files_cache=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
echo "vcs_cache=$(composer config cache-vcs-dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache composer cache
|
||||
uses: actions/cache@v3
|
||||
|
Loading…
x
Reference in New Issue
Block a user