Make WordPress Core


Ignore:
Timestamp:
12/20/2023 02:50:11 PM (13 months ago)
Author:
swissspidy
Message:

Build/Test Tools: Post message for testing on Playground only after build succeeds.

Uses the workflow_run trigger to only leave pull request comments after the build jobs finish.

Props zieladam, desrosj.
See #59416.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/test-build-processes.yml

    r57197 r57210  
    107107      directory: ${{ matrix.directory }}
    108108
     109  # Uploads the PR number as an artifact for the Pull Request Commenting workflow to download and then
     110  # leave a comment detailing how to test the PR within WordPress Playground.
     111  playground-comment:
     112    name: Leave WordPress Playground details
     113    runs-on: ubuntu-latest
     114    permissions:
     115      actions: write
     116    continue-on-error: true
     117    needs: [ test-core-build-process, test-core-build-process-macos, test-gutenberg-build-process, test-gutenberg-build-process-macos ]
     118    if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request' }}
     119
     120    steps:
     121      - name: Save PR number
     122        run: |
     123          mkdir -p ./pr-number
     124          echo ${{ github.event.number }} > ./pr-number/NR
     125
     126      - name: Upload PR number as artifact
     127        uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
     128        with:
     129          name: pr-number
     130          path: pr-number/
    109131
    110132  slack-notifications:
Note: See TracChangeset for help on using the changeset viewer.