From 2c64319a8e625ede09e40c7993ca7e622922fb42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Pe=C3=B1a-Castellanos?= Date: Sat, 3 May 2025 11:04:23 -0500 Subject: [PATCH] Update workflows --- .github/workflows/clean_up.yml | 19 +++++++++++++++++++ .github/workflows/sync_content.yml | 2 +- .github/workflows/sync_translations.yml | 3 +-- 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/clean_up.yml diff --git a/.github/workflows/clean_up.yml b/.github/workflows/clean_up.yml new file mode 100644 index 00000000..a8741b8a --- /dev/null +++ b/.github/workflows/clean_up.yml @@ -0,0 +1,19 @@ +name: Clean up +on: + #schedule: + # - cron: '0 12 * * FRI' # Every Fridat at midnight + workflow_dispatch: +jobs: + clean: + runs-on: ubuntu-latest + steps: + - name: Clean Xarray translation repository + uses: Scientific-Python-Translations/clean-up@main + with: + translations-repo: "Scientific-Python-Translations/xarray-translations" + translations-ref: "main" + # These are provided by the Scientific Python Project and allow + # automation with bots + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.PASSPHRASE }} + token: ${{ secrets.TOKEN }} diff --git a/.github/workflows/sync_content.yml b/.github/workflows/sync_content.yml index e563ae2d..6e4a43c4 100644 --- a/.github/workflows/sync_content.yml +++ b/.github/workflows/sync_content.yml @@ -4,7 +4,7 @@ on: # - cron: '0 5 * * *' # Daily at 5 am workflow_dispatch: jobs: - sync: + sync_content: runs-on: ubuntu-latest steps: - name: Sync Xarray Content diff --git a/.github/workflows/sync_translations.yml b/.github/workflows/sync_translations.yml index 2ceb8195..ac8d5af7 100644 --- a/.github/workflows/sync_translations.yml +++ b/.github/workflows/sync_translations.yml @@ -1,7 +1,7 @@ name: Sync Translations on: #schedule: - # - cron: '0 12 * * MON' # Every Monday at noon + # - cron: '0 12 * * WED' # Every Wednesday at midnight workflow_dispatch: jobs: build: @@ -10,7 +10,6 @@ jobs: - name: Sync Xarray translations uses: Scientific-Python-Translations/translations-sync@main with: - # Provided by user crowdin-project: "Xarray" source-repo: "xarray-contrib/xarray.dev" source-path: "src/locales/en/"