diff --git a/.github/workflows/tests-nightly.yml b/.github/workflows/tests-nightly.yml index ee7ded3a3..bc55bb862 100644 --- a/.github/workflows/tests-nightly.yml +++ b/.github/workflows/tests-nightly.yml @@ -14,6 +14,13 @@ on: - https://master.staging.saleor.cloud/ - https://latest.staging.saleor.cloud/ - https://qa.staging.saleor.cloud/ + - Other + otherEnvironment: + required: false + description: 'Type env if "Other" option is selected' + type: string + default: 'https://vXX.staging.saleor.cloud/' + schedule: - cron: '00 2 * * 1-5' @@ -70,12 +77,19 @@ jobs: - name: Checkout uses: actions/checkout@v1 + - name: Check if other env + id: get-typed-env-uri + if: ${{ github.event.inputs.environment == 'Other' }} + run: | + echo "::set-output name=ENV_URI::${{github.event.inputs.otherEnvironment}}" + - name: Get env id: get-env-uri env: DEFAULT_ENV_URI: 'https://automation-dashboard.staging.saleor.cloud/' + TYPED_ENV_URI: '' run: | - echo "::set-output name=ENV_URI::${{ github.event.inputs.environment || env.DEFAULT_ENV_URI }}" + echo "::set-output name=ENV_URI::${{ steps.get-typed-env-uri.outputs.ENV_URI || github.event.inputs.environment || env.DEFAULT_ENV_URI }}" - name: Setup Node uses: actions/setup-node@v1