From c815c2275600c9f0789b629fada6a86b5ad1c2f5 Mon Sep 17 00:00:00 2001 From: Bernardo Guerreiro Date: Tue, 23 Jan 2024 23:21:06 +0000 Subject: [PATCH] refactor: pass stage to sls info --- .github/workflows/serverless-deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/serverless-deploy.yaml b/.github/workflows/serverless-deploy.yaml index 319103f..6e3b7f6 100644 --- a/.github/workflows/serverless-deploy.yaml +++ b/.github/workflows/serverless-deploy.yaml @@ -66,10 +66,10 @@ jobs: if: ${{ inputs.SHOULD_SEED_DB == true }} run: npm run seed-db - name: Do serverless info - run: npx serverless info --verbose + run: npx serverless info --stage ${{ inputs.ENVIRONMENT }} --verbose - id: set_service_url name: Generate, mask, and output a secret run: | - SERVICE_URL="$(npx serverless info --verbose | grep ServiceEndpoint | sed s/ServiceEndpoint\:\ //g)" + SERVICE_URL="$(npx serverless info --stage ${{ inputs.ENVIRONMENT }} --verbose | grep ServiceEndpoint | sed s/ServiceEndpoint\:\ //g)" echo "$SERVICE_URL" echo "SERVICE_URL=$SERVICE_URL" >> "$GITHUB_OUTPUT" \ No newline at end of file