diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 86044e2..8a27200 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -7,8 +7,16 @@ concurrency: cancel-in-progress: true jobs: - performancetesting: + init: runs-on: ubuntu-latest + outputs: + PULL_REQUEST_HEAD_REF: ${{ github.event.pull_request.head.ref }} + PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }} + PULL_REQUEST_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }} + + performance-testing: + runs-on: ubuntu-latest + needs: init strategy: fail-fast: false @@ -17,11 +25,6 @@ jobs: name: performance-${{ matrix.php-versions }} - outputs: - PULL_REQUEST_HEAD_REF: ${{ github.event.pull_request.head.ref }} - PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }} - PULL_REQUEST_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }} - steps: - name: Checkout server before PR uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 @@ -65,6 +68,6 @@ jobs: - name: Apply PR 4 run: | - echo ${{ needs.performancetesting.outputs.PULL_REQUEST_HEAD_REF }} - echo ${{ needs.performancetesting.outputs.PULL_REQUEST_BASE_REF }} - echo ${{ needs.performancetesting.outputs.PULL_REQUEST_CLONE_URL }} + echo ${{ needs.init.outputs.PULL_REQUEST_HEAD_REF }} + echo ${{ needs.init.outputs.PULL_REQUEST_BASE_REF }} + echo ${{ needs.init.outputs.PULL_REQUEST_CLONE_URL }}