Skip to content

Commit dac99c6

Browse files
committed
Check out caller repo after meta repo
As per comment
1 parent 0ad857a commit dac99c6

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
@@ -37,16 +37,18 @@ jobs:
3737
sync:
3838
runs-on: ubuntu-latest
3939
steps:
40-
- name: Check out calling repository
40+
- name: Check out element-hq/element-meta
4141
uses: actions/checkout@v4
42-
if: github.repository != 'element-hq/element-meta'
4342
with:
44-
path: caller-repository
43+
repository: element-hq/element-meta
4544

46-
- name: Check out element-hq/element-meta
45+
# nb. this put the caller repo within the element-meta checkout so it must
46+
# be done afterwards as actions/checkout erases the directory
47+
- name: Check out calling repository
4748
uses: actions/checkout@v4
49+
if: github.repository != 'element-hq/element-meta'
4850
with:
49-
repository: element-hq/element-meta
51+
path: caller-repository
5052

5153
- name: "Set up Node.js"
5254
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)