diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 3b23b17ac2..07ab30db25 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -33,11 +33,12 @@ jobs: sleep 1 done - # - name: Getting cypress secrets - # # use quotes around the secret, as its value - # # is simply inserted as a string into the command - # run: | - # echo '${{ secrets.CYPRESS_SECRETS }}' > cypress.env.json + - name: create-json + id: create-json + uses: jsdaniell/create-json@v1.2.2 + with: + name: "cypress.env.json" + json: ${{ secrets.CYPRESS_SECRETS }} - name: Cypress integration test uses: cypress-io/github-action@v5 @@ -45,7 +46,9 @@ jobs: working-directory: ./cypress-tests config: "baseUrl=https://tooljet-pr-${{ env.PR_NUMBER }}.onrender.com" config-file: cypress-run.config.js - env: ${{ secrets.CYPRESS_SECRETS }} + # env: true + # env: + # CYPRESS_SECRETS: ${{ secrets.CYPRESS_SECRETS }} - name: Capturing screenshots uses: actions/upload-artifact@v3