Skip to content

Commit 96fc791

Browse files
authored
Merge pull request #3123 from element-hq/t3chguy/fix-sync-labels
Fix sync labels if caller repo is not using yarn
2 parents 35313c3 + 0b4629c commit 96fc791

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/sync-labels.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,28 @@ jobs:
4040
- name: Check out calling repository
4141
uses: actions/checkout@v4
4242
if: github.repository != 'element-hq/element-meta'
43+
with:
44+
path: caller-repository
45+
4346
- name: Check out element-hq/element-meta
4447
uses: actions/checkout@v4
4548
with:
46-
path: element-meta
4749
repository: element-hq/element-meta
50+
4851
- name: "Set up Node.js"
4952
uses: actions/setup-node@v4
5053
with:
5154
cache: yarn
52-
cache-dependency-path: element-meta/yarn.lock
55+
5356
- name: Install Deps
5457
run: "yarn install --frozen-lockfile"
55-
working-directory: element-meta
58+
5659
- name: "Sync labels"
5760
run: |
5861
yarn sync-labels $(echo -e "${{ inputs.LABELS }}" | xargs -r printf -- '--labels \"%s\"\n' | xargs echo) \
59-
${{ github.repository != 'element-hq/element-meta' && '--dir ..' }} \
62+
${{ github.repository != 'element-hq/element-meta' && '--dir ./caller-repository' }} \
6063
${{ inputs.DELETE && '--delete' }} \
6164
${{ inputs.WET && '--wet' }}
62-
working-directory: element-meta
6365
env:
6466
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
6567
GITHUB_REPOSITORY: ${{ github.repository }}

0 commit comments

Comments
 (0)