Skip to content

Commit b76dc8c

Browse files
authored
Make sure to fetch the full git history for l10n-sync job in CI (#5667)
It looks like the l10n-sync job has failed in CI this morning. I believe this is because of a difference between CircleCI and GitHub Actions `actions/checkout@v5` action. It looks like the GitHub action does a shallow clone [since v4](https://github.com/actions/checkout#:~:text=Only,events), but CircleCI was doing a full clone. We need the full history to be able to do some git operations inside the l10n-sync.js script. `fetch-depth: 0` makes sure to fetch the full history for this task.
1 parent e7f8e69 commit b76dc8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/l10n-sync.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
uses: actions/checkout@v5
2929
with:
3030
ssh-key: ${{ secrets.L10N_SYNC_SSH_KEY }}
31+
# Fetch the full git history since we are going to need it to do some
32+
# git operations between the main and l10n branches.
33+
fetch-depth: 0
3134

3235
- name: Setup Node.js
3336
uses: actions/setup-node@v6

0 commit comments

Comments
 (0)