From 537c7a73a78ac859725dce48170e83ada70d691d Mon Sep 17 00:00:00 2001 From: m-sureshraj Date: Sun, 7 Jan 2024 11:18:29 +0100 Subject: [PATCH] fix: fix reading user input --- .github/workflows/deploy-to-dev-env.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-to-dev-env.yml b/.github/workflows/deploy-to-dev-env.yml index dfc9c12..bcbda50 100644 --- a/.github/workflows/deploy-to-dev-env.yml +++ b/.github/workflows/deploy-to-dev-env.yml @@ -17,13 +17,12 @@ permissions: env: AWS_REGION : 'eu-west-2' -defaults: - run: - working-directory: ${{ github.event.inputs.directory_name }} - jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ${{ github.event.inputs.directory_name }} steps: - name: ⬇️ Checkout repo uses: actions/checkout@v4 @@ -47,6 +46,9 @@ jobs: environment: development permissions: id-token: write # Fetch an OpenID Connect (OIDC) token. + defaults: + run: # steps that have run command will use the given example project path + working-directory: ${{ github.event.inputs.directory_name }} steps: - name: Git clone the repository uses: actions/checkout@v4 @@ -57,7 +59,6 @@ jobs: node-version: 20 - name: Install dependencies - working-directory: ./deployment-with-github-actions run: npm ci - name: configure aws credentials