-
Notifications
You must be signed in to change notification settings - Fork 89
33 lines (29 loc) · 1.05 KB
/
update-kvariants.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Update kVariants dictionary
# This workflow regularly looks for updates of the kVariants dictionary
# in https://github.com/hfhchan/irg and if there are any, it creates
# a PR with the changes.
on:
# Run this at 10:00 every monday.
schedule:
- cron: '0 10 * * 1'
# Also allow triggering manually.
workflow_dispatch:
env:
# Use a token that has write access to repo.
GH_TOKEN: ${{ secrets.MEILI_BOT_GH_PAT }}
jobs:
update-kvariants-dictionary:
name: Update kVariants dictionary
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Fetch latest version
run: ./kvariants/bin/sync_dictionaries.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update kVariants dictionary
branch: update-kvariants
title: Update kVariants dictionary
body: Automatically created by [scheduled action](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).