From 1ce8c42926c986d5193121e1a36a09e7d92643a3 Mon Sep 17 00:00:00 2001 From: Ralph Cowling Date: Mon, 25 Apr 2022 16:04:52 +0200 Subject: [PATCH] force directory in serverless args The struggle with the serverless config living outside the root of the folder are detailed [here](https://github.com/serverless/github-action/issues/53\#issuecomment-1059839383) The github action _should_ respect sub folders, though this should force it run from the correct folder --- .github/workflows/deploy-dev.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 51fae31c..0b636b70 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [14.x, 16.x] + node-version: [16.x] environment: dev defaults: run: @@ -31,9 +31,9 @@ jobs: - name: serverless deploy uses: serverless/github-action@v3 with: - args: deploy + args: -c "cd ./csv-exporter && serverless deploy --verbose" + entrypoint: /bin/sh env: - # SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }} SLS_DEBUG: 1 AWS_REGION: eu-west-2 AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}