Make WordPress Core


Ignore:
Timestamp:
10/19/2022 06:10:43 PM (2 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/test-coverage.yml

    r54511 r54649  
    100100      - name: "Get last Monday's date"
    101101        id: get-date
    102         run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
     102        run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT
    103103
    104104      - name: Get Composer cache directory
    105105        id: composer-cache
    106         run: echo "::set-output name=dir::$(composer config cache-files-dir)"
     106        run: echo "composer_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
    107107
    108108      - name: Cache Composer dependencies
     
    111111          cache-name: cache-composer-dependencies
    112112        with:
    113           path: ${{ steps.composer-cache.outputs.dir }}
     113          path: ${{ steps.composer-cache.outputs.composer_dir }}
    114114          key: ${{ runner.os }}-php-${{ matrix.php }}-date-${{ steps.get-date.outputs.date }}-composer-${{ hashFiles('**/composer.json') }}
    115115
Note: See TracChangeset for help on using the changeset viewer.