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/slack-notifications.yml

    r54511 r54649  
    115115      - name: Store previous conclusion as an output
    116116        id: previous-conclusion
    117         run: echo "::set-output name=previous_conclusion::${{ steps.previous-attempt-result.outputs.result }}"
     117        run: echo "previous_conclusion=${{ steps.previous-attempt-result.outputs.result }}" >> $GITHUB_OUTPUT
    118118
    119119      - name: Get the commit message
     
    139139          EOF
    140140          )
    141           echo "::set-output name=commit_message_escaped::${COMMIT_MESSAGE}"
     141          echo "commit_message_escaped=${COMMIT_MESSAGE}" >> $GITHUB_OUTPUT
    142142
    143143      - name: Construct payload and store as an output
    144144        id: create-payload
    145         run: echo "::set-output name=payload::{\"workflow_name\":\"${{ github.workflow }}\",\"ref_name\":\"${{ env.CURRENT_BRANCH }}\",\"run_url\":\"https://github.com/WordPress/wordpress-develop/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}\",\"commit_message\":\"${{ steps.commit-message.outputs.commit_message_escaped }}\"}"
     145        run: echo "payload={\"workflow_name\":\"${{ github.workflow }}\",\"ref_name\":\"${{ env.CURRENT_BRANCH }}\",\"run_url\":\"https://github.com/WordPress/wordpress-develop/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}\",\"commit_message\":\"${{ steps.commit-message.outputs.commit_message_escaped }}\"}" >> $GITHUB_OUTPUT
    146146
    147147  # Posts notifications when a workflow fails.
Note: See TracChangeset for help on using the changeset viewer.