Skip to content

Commit 7af37a0

Browse files
authored
Merge pull request #206 from goanpeca/workflows
Update workflows
2 parents fd2dc5c + 2c64319 commit 7af37a0

3 files changed

Lines changed: 21 additions & 3 deletions

File tree

.github/workflows/clean_up.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Clean up
2+
on:
3+
#schedule:
4+
# - cron: '0 12 * * FRI' # Every Fridat at midnight
5+
workflow_dispatch:
6+
jobs:
7+
clean:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Clean Xarray translation repository
11+
uses: Scientific-Python-Translations/clean-up@main
12+
with:
13+
translations-repo: "Scientific-Python-Translations/xarray-translations"
14+
translations-ref: "main"
15+
# These are provided by the Scientific Python Project and allow
16+
# automation with bots
17+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
18+
passphrase: ${{ secrets.PASSPHRASE }}
19+
token: ${{ secrets.TOKEN }}

.github/workflows/sync_content.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
# - cron: '0 5 * * *' # Daily at 5 am
55
workflow_dispatch:
66
jobs:
7-
sync:
7+
sync_content:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Sync Xarray Content

.github/workflows/sync_translations.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Sync Translations
22
on:
33
#schedule:
4-
# - cron: '0 12 * * MON' # Every Monday at noon
4+
# - cron: '0 12 * * WED' # Every Wednesday at midnight
55
workflow_dispatch:
66
jobs:
77
build:
@@ -10,7 +10,6 @@ jobs:
1010
- name: Sync Xarray translations
1111
uses: Scientific-Python-Translations/translations-sync@main
1212
with:
13-
# Provided by user
1413
crowdin-project: "Xarray"
1514
source-repo: "xarray-contrib/xarray.dev"
1615
source-path: "src/locales/en/"

0 commit comments

Comments
 (0)