diff --git a/.github/workflows/actions/deploy-lambda/action.yml b/.github/workflows/actions/deploy-lambda/action.yml index 393171ee..a63917aa 100644 --- a/.github/workflows/actions/deploy-lambda/action.yml +++ b/.github/workflows/actions/deploy-lambda/action.yml @@ -38,10 +38,8 @@ runs: shell: bash run: | echo "Lambda: ${{ inputs.lambda }}" - RESOURCE=$(echo "${{ inputs.lambda }}" | cut -d'/' -f1) - LAMBDA=$(echo "${{ inputs.lambda }}" | cut -d'/' -f2) - echo "RESOURCE=$RESOURCE" >> $GITHUB_ENV - echo "LAMBDA=$LAMBDA" >> $GITHUB_ENV + echo "RESOURCE=${{ matrix.lambda }%%/*}" >> $GITHUB_ENV + echo "LAMBDA=${{ matrix.lambda }##*/}" >> $GITHUB_ENV echo "IMAGE_NAME=$RESOURCE.$LAMBDA" >> $GITHUB_ENV - name: Set reusable variables diff --git a/.github/workflows/publish-lambdas.yml b/.github/workflows/publish-lambdas.yml index 04d61a96..e8b36e51 100644 --- a/.github/workflows/publish-lambdas.yml +++ b/.github/workflows/publish-lambdas.yml @@ -80,10 +80,8 @@ jobs: id: parse run: | echo "Lambda: ${{ matrix.lambda }}" - RESOURCE=$(echo "${{ matrix.lambda }}" | cut -d'/' -f1) - LAMBDA=$(echo "${{ matrix.lambda }}" | cut -d'/' -f2) - echo "RESOURCE=$RESOURCE" >> $GITHUB_ENV - echo "LAMBDA=$LAMBDA" >> $GITHUB_ENV + echo "RESOURCE=${{ matrix.lambda }%%/*}" >> $GITHUB_ENV + echo "LAMBDA=${{ matrix.lambda }##*/}" >> $GITHUB_ENV - name: Setup Image Metadata id: meta diff --git a/aws/services/httpService.ts b/aws/services/httpService.ts index f57dd629..a32f6ce4 100644 --- a/aws/services/httpService.ts +++ b/aws/services/httpService.ts @@ -38,9 +38,6 @@ export class HttpService implements IHttpService { password, }, httpsAgent, - headers: { - "Content-Type": "application/json", - }, }); } diff --git a/aws/tests/services/httpService.test.ts b/aws/tests/services/httpService.test.ts index 55e7897b..9ef829c1 100644 --- a/aws/tests/services/httpService.test.ts +++ b/aws/tests/services/httpService.test.ts @@ -39,9 +39,6 @@ describe("HttpService", () => { password, }, httpsAgent: expect.anything(), - headers: { - "Content-Type": "application/json", - }, }) ); });