From 8d644ecf2fc3bb772ccc8104fe430194d9dbb921 Mon Sep 17 00:00:00 2001 From: Edward Brunton <42774600+EdwardBrunton@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:36:50 +0200 Subject: [PATCH] Enter correct directory when updating lock file --- .github/workflows/update-lockfile.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-lockfile.yml b/.github/workflows/update-lockfile.yml index 106675b62..096c10c3c 100644 --- a/.github/workflows/update-lockfile.yml +++ b/.github/workflows/update-lockfile.yml @@ -13,15 +13,19 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} - name: Update lockfile - run: yarn install + run: | + cd client + yarn install - name: Commit and push changes run: | git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com' - git add yarn.lock + git add client/yarn.lock git commit -n -m "chore(snyk): update lockfile" git push \ No newline at end of file