Add input for cypress workflow (#2023)

* Add input for cypress workflow

* remove run on pull request
This commit is contained in:
Karolina Rakoczy 2022-04-28 11:42:50 +02:00 committed by GitHub
parent 6d5b894dd9
commit 79b4eb1836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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