From 2222ac6d53f82e70b6b4dcfaeabbe55a5dfd4fd4 Mon Sep 17 00:00:00 2001 From: Edwin Sirko Date: Tue, 6 Feb 2024 12:56:38 -0500 Subject: [PATCH] choose your own platform (#89) --- .github/workflows/ci-e2e.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index 533cc91..8abd256 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -2,6 +2,15 @@ name: E2E Test on: workflow_dispatch: + inputs: + runs_on: + description: 'Platform to run publish-immutable-action on' + default: 'ubuntu-latest' + type: choice + options: + - ubuntu-latest + - macos-latest + - windows-latest permissions: {} @@ -21,7 +30,7 @@ jobs: -H "Authorization: Bearer ${{ secrets.PAT }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/immutable-actions/test-publish-internal-ts-action/dispatches \ - -d '{"event_type":"e2e-test","client_payload":{"unit":false,"integration":true,"sha":"${{ github.sha }}"}}' + -d '{"event_type":"on-demand-test","client_payload":{"unit":false,"integration":true,"sha":"${{ github.sha }}","runs_on":"${{ inputs.runs_on }}"}}' - name: Wait for successful publish id: wait-for-successful-publish run: |