Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Schedule `Sync translations` action to run 30 minutes after the last one.

Open BrayanDSO opened this issue 11 months ago • 14 comments

This concerns the Sync translations GitHub action.

Crowdin translations can only be updated 30 minutes after the last sync. Running the GitHub action before that delay result in no changes.

To avoid waiting for the delay, if the last sync ran less than 30 minutes ago, schedule the next sync to run 30 minutes after the last one.

If multiple syncs are scheduled, keep only one.

BrayanDSO avatar Jan 03 '26 10:01 BrayanDSO

I don't believe GitHub Actions has a mechanism to schedule a job in the future, do you have a proposed implementation for this?

  • sleep will occupy a runner, but is probably the 'best' way

david-allison avatar Jan 03 '26 10:01 david-allison

I don't believe GitHub Actions has a mechanism to schedule a job in the future, do you have a proposed implementation for this?

I don't know a single thing about GitHub Actions 😂

Anything that works is fine to me

BrayanDSO avatar Jan 03 '26 10:01 BrayanDSO

@david-allison can I work on this ?

gurnoorpannu avatar Jan 03 '26 20:01 gurnoorpannu

@gurnoorpannu The following issue is still assigned to you. Would you prefer this issue, and be unassigned on the linked issue?

  • https://github.com/ankidroid/Anki-Android/issues/19320

david-allison avatar Jan 04 '26 05:01 david-allison

Hi, can i please get this assigned?

hemampandey avatar Jan 04 '26 07:01 hemampandey

@gurnoorpannu The following issue is still assigned to you. Would you prefer this issue, and be unassigned on the linked issue?

@david-allison I made the pr #19424 and it got accepted , idk if you need me to make some changes in it ?

gurnoorpannu avatar Jan 04 '26 11:01 gurnoorpannu

@gurnoorpannu ok, this issue is assigned to you

david-allison avatar Jan 04 '26 11:01 david-allison

Hello, can i work on this? It seems to be solvable by using schedule https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows

LUwUcifer avatar Feb 07 '26 07:02 LUwUcifer

@LUwUcifer I've assigned you, go for it.

lukstbit avatar Feb 07 '26 07:02 lukstbit

Hey @lukstbit can you assign this one to me?

AjvadZ avatar Feb 13 '26 20:02 AjvadZ

@AjvadZ this issue is already assigned to me and i am working on it

LUwUcifer avatar Feb 14 '26 01:02 LUwUcifer

Hello @BrayanDSO @lukstbit, i have coded the yaml file for this functionality however I am unsure how to go about testing whether it works, can i get some pointers regarding the same?

LUwUcifer avatar Feb 15 '26 17:02 LUwUcifer

@LUwUcifer Not trying to be rude but are you working on this issue?

vinay-singh-dev avatar Apr 12 '26 03:04 vinay-singh-dev

yes

LUwUcifer avatar Apr 12 '26 14:04 LUwUcifer