diff --git a/.github/files/mirror-.github/workflows/e2e-tests.yml b/.github/files/mirror-.github/workflows/e2e-tests.yml new file mode 100644 index 000000000000..acaf846cc808 --- /dev/null +++ b/.github/files/mirror-.github/workflows/e2e-tests.yml @@ -0,0 +1,19 @@ +name: End to end tests + +on: + push: + +jobs: + run-tests: + name: "Trigger e2e tests in Jetpack monorepo" + runs-on: ubuntu-latest + if: github.repository == 'automattic/jetpack-production' + + steps: + - name: Create a repository dispatch + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_DISPATCH_TOKEN }} + repository: automattic/jetpack + event-type: e2e tests at ${{github.event_name}} on ${{github.repository}} ${{github.ref_name}} ${{github.ref_type}} + client-payload: '{"repository": "${{github.repository}}", "ref_name": "${{github.ref_name}}", "ref_type": "${{github.ref_type}}"}' diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index d05d58fcead7..838840e3da28 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -15,6 +15,8 @@ on: types: [completed] workflows: ["Build"] branches: [ 'trunk', '*/branch-*' ] + repository_dispatch: + types: ['tba'] #use a type that will not trigger anything yet. to be updated after #27288 is merged concurrency: group: e2e-tests-${{ github.event_name }}-${{ github.ref }}