Make WordPress Core


Ignore:
Timestamp:
10/19/2022 06:10:43 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Remove use of set-output in Action workflows.

The save-state and set-output commands have been deprecated in GitHub Actions. This removes all occurrences of the command within workflow steps.

This will not remove all deprecated notices from workflow summaries (some third-party actions still contain instances of these commands and need to be fixed upstream), but it will fix the notices caused by custom workflow code.

See #56820.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/phpunit-tests.yml

    r54511 r54649  
    122122      - name: "Get last Monday's date"
    123123        id: get-date
    124         run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
     124        run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT
    125125
    126126      - name: Get Composer cache directory
    127127        id: composer-cache
    128         run: echo "::set-output name=dir::$(composer config cache-files-dir)"
     128        run: echo "composer_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
    129129
    130130      - name: Cache Composer dependencies
     
    133133          cache-name: cache-composer-dependencies
    134134        with:
    135           path: ${{ steps.composer-cache.outputs.dir }}
     135          path: ${{ steps.composer-cache.outputs.composer_dir }}
    136136          key: ${{ runner.os }}-php-${{ matrix.php }}-date-${{ steps.get-date.outputs.date }}-composer-${{ hashFiles('**/composer.json') }}
    137137
Note: See TracChangeset for help on using the changeset viewer.