refactor: fix ::set-output deprecations (#79)

This commit is contained in:
Gowri
2022-10-21 06:28:22 +10:30
committed by GitHub
parent 84c16c2ad9
commit d8936216c0
5 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -118,7 +118,8 @@ jobs:
working-directory: ${{ inputs.magento_directory }} working-directory: ${{ inputs.magento_directory }}
id: composer-cache id: composer-cache
run: | run: |
echo "::set-output name=dir::$(composer config cache-files-dir)" echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: "Cache Composer Packages" - name: "Cache Composer Packages"
uses: actions/cache@v3 uses: actions/cache@v3
+1 -1
View File
@@ -56,7 +56,7 @@ runs:
shell: bash shell: bash
working-directory: project working-directory: project
id: changed-files id: changed-files
run: echo "::set-output name=files::$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | xargs)" run: echo "files=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | xargs)" >> $GITHUB_OUTPUT
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
- name: Coding Standard Check - name: Coding Standard Check
+2 -2
View File
@@ -17,10 +17,10 @@ runs:
using: "composite" using: "composite"
steps: steps:
- run: | - run: |
echo "::set-output name=version::$(cat composer.json | jq '.require echo "version=$(cat composer.json | jq '.require
| with_entries( select(.key == "magento/product-community-edition" or .key == "magento/product-enterprise-edition") ) | with_entries( select(.key == "magento/product-community-edition" or .key == "magento/product-enterprise-edition") )
| to_entries | to_entries
| .[0].value')" | .[0].value')" >> $GITHUB_OUTPUT
shell: bash shell: bash
working-directory: ${{ inputs.working-directory }} working-directory: ${{ inputs.working-directory }}
name: Compute Installed Magento version name: Compute Installed Magento version
+2 -1
View File
@@ -79,7 +79,8 @@ runs:
working-directory: ${{ inputs.magento_directory }} working-directory: ${{ inputs.magento_directory }}
id: composer-cache id: composer-cache
run: | run: |
echo "::set-output name=dir::$(composer config cache-files-dir)" echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: "Cache Composer Packages" - name: "Cache Composer Packages"
uses: actions/cache@v3 uses: actions/cache@v3
+1 -1
View File
@@ -34,7 +34,7 @@ runs:
working-directory: ${{ inputs.source_folder }} working-directory: ${{ inputs.source_folder }}
id: composer-cache id: composer-cache
run: | run: |
echo "::set-output name=dir::$(composer config cache-files-dir)" echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: "Cache Composer Packages" - name: "Cache Composer Packages"
uses: actions/cache@v3 uses: actions/cache@v3