Update kVariants dictionary #87
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ./irg-kvariants/bin/sync_dictionaries.sh | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
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 }}). |