Add input for cypress workflow (#2023)
* Add input for cypress workflow * remove run on pull request
This commit is contained in:
parent
6d5b894dd9
commit
79b4eb1836
1 changed files with 15 additions and 1 deletions
16
.github/workflows/tests-nightly.yml
vendored
16
.github/workflows/tests-nightly.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue