From 529fb4c23b8e74f939568fa766e318c72e48877e Mon Sep 17 00:00:00 2001 From: qawolf-bot Date: Tue, 14 May 2024 14:17:45 +0000 Subject: [PATCH] Revision a5a7b71 --- README.md | 6 +++--- dist/index.js | 4 ++-- package.json | 2 +- src/createEnvironmentVariables.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 53da232..2b23bae 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ jobs: pull-requests: read steps: - name: Create QA Wolf environment - uses: qawolf/preview-testing-action@v0.1.8-beta + uses: qawolf/preview-testing-action@v0.2.3 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: @@ -83,7 +83,7 @@ jobs: pull-requests: read steps: - name: Test preview environment - uses: qawolf/preview-testing-action@v0.1.8-beta + uses: qawolf/preview-testing-action@v0.2.3 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: @@ -113,7 +113,7 @@ jobs: pull-requests: read steps: - name: Delete PR testing environment - uses: qawolf/preview-testing-action@v0.1.8-beta + uses: qawolf/preview-testing-action@v0.2.3 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: diff --git a/dist/index.js b/dist/index.js index 09e6b59..d8752df 100644 --- a/dist/index.js +++ b/dist/index.js @@ -58708,8 +58708,8 @@ async function createEnvironmentVariables({ environmentId, variables, qawolfApiK const environmentVariableRequests = Object.keys(variables).map(async (key) => { const value = variables[key]; return axios_1.default.post(constants_1.qawolfGraphQLEndpoint, { - query: `mutation UpsertEnvironmentVariable($environmentId: ID!, $value: String!, $name: String) { - upsertEnvironmentVariable(environment_id: $environmentId, value: $value, name: $name) { + query: `mutation UpsertEnvironmentVariable($environmentId: ID!, $value: String!, $name: String!) { + upsertEnvironmentVariable(environmentId: $environmentId, value: $value, name: $name) { id } }`, diff --git a/package.json b/package.json index e280fd2..563c466 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@qawolf/preview-testing-action", "type": "commonjs", - "version": "0.0.1", + "version": "v0.2.3", "main": "dist/index.js", "engines": { "node": "^16 || ^18 || ^20" diff --git a/src/createEnvironmentVariables.ts b/src/createEnvironmentVariables.ts index d922087..e19b246 100644 --- a/src/createEnvironmentVariables.ts +++ b/src/createEnvironmentVariables.ts @@ -17,8 +17,8 @@ export async function createEnvironmentVariables({ return axios.post( qawolfGraphQLEndpoint, { - query: `mutation UpsertEnvironmentVariable($environmentId: ID!, $value: String!, $name: String) { - upsertEnvironmentVariable(environment_id: $environmentId, value: $value, name: $name) { + query: `mutation UpsertEnvironmentVariable($environmentId: ID!, $value: String!, $name: String!) { + upsertEnvironmentVariable(environmentId: $environmentId, value: $value, name: $name) { id } }`,