From 0b4629ce3102fdf7e701180a37db048b6206c5d4 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 16 Feb 2026 09:02:44 +0000 Subject: [PATCH] Fix sync labels if caller repo is not using yarn --- .github/workflows/sync-labels.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index d17a2da..8d5f737 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -40,26 +40,28 @@ jobs: - name: Check out calling repository uses: actions/checkout@v4 if: github.repository != 'element-hq/element-meta' + with: + path: caller-repository + - name: Check out element-hq/element-meta uses: actions/checkout@v4 with: - path: element-meta repository: element-hq/element-meta + - name: "Set up Node.js" uses: actions/setup-node@v4 with: cache: yarn - cache-dependency-path: element-meta/yarn.lock + - name: Install Deps run: "yarn install --frozen-lockfile" - working-directory: element-meta + - name: "Sync labels" run: | yarn sync-labels $(echo -e "${{ inputs.LABELS }}" | xargs -r printf -- '--labels \"%s\"\n' | xargs echo) \ - ${{ github.repository != 'element-hq/element-meta' && '--dir ..' }} \ + ${{ github.repository != 'element-hq/element-meta' && '--dir ./caller-repository' }} \ ${{ inputs.DELETE && '--delete' }} \ ${{ inputs.WET && '--wet' }} - working-directory: element-meta env: GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} GITHUB_REPOSITORY: ${{ github.repository }}