diff --git a/.github/workflows/backstop-sanity-test.yml b/.github/workflows/backstop-sanity-test.yml index 69e876c27..4bfded8a2 100644 --- a/.github/workflows/backstop-sanity-test.yml +++ b/.github/workflows/backstop-sanity-test.yml @@ -48,7 +48,7 @@ jobs: run: | rm -rf ${{ steps.base.outputs.WORKSPACE_ROOT }}/* rm -rf ${{ steps.base.outputs.WORKSPACE_ROOT }}/*.* - git clone -b ${{ github.head_ref || github.ref_name }} https://github.com/${{ github.repository }}.git ${{ steps.base.outputs.WORKSPACE_ROOT }} + git clone -b ${{ github.event.pull_request.head.sha || github.head_ref || github.ref_name || github.ref }} https://github.com/${{ github.repository }}.git ${{ steps.base.outputs.WORKSPACE_ROOT }} ls ${{ steps.base.outputs.WORKSPACE_ROOT }} - uses: ./actions/.github/actions/setup-node @@ -122,6 +122,20 @@ jobs: - uses: ./actions/.github/actions/setup-base id: base + with: + DEBUG_ENABLED: ${{ inputs.DEBUG_ENABLED }} + DEBUG_DETACHED: ${{ inputs.DEBUG_DETACHED }} + + - name: Checkout to workspace + shell: bash + run: | + rm -rf ${{ steps.base.outputs.WORKSPACE_ROOT }}/* + rm -rf ${{ steps.base.outputs.WORKSPACE_ROOT }}/*.* + git clone -b ${{ github.event.pull_request.head.sha || github.head_ref || github.ref_name || github.ref }} https://github.com/${{ github.repository }}.git ${{ steps.base.outputs.WORKSPACE_ROOT }} + ls ${{ steps.base.outputs.WORKSPACE_ROOT }} + + - uses: ./actions/.github/actions/setup-node + id: node - name: "🎭 Run `npm run sanity-test-playwright`" continue-on-error: true