Update Monika After Story #691
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 Monika After Story | |
on: | |
push: | |
branches: | |
- master | |
repository_dispatch: | |
types: [update_mas] | |
schedule: | |
- cron: "0 21 * * *" | |
workflow_dispatch: | |
jobs: | |
translate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout via SSH | |
uses: actions/checkout@v4 | |
with: | |
ssh-key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
- name: Get latest version | |
id: ghd | |
uses: proudust/gh-describe@v2 | |
with: | |
repo: Monika-After-Story/MonikaModDev | |
commit-ish: master | |
match: v* | |
- name: Checkout MAS via SSH | |
uses: actions/checkout@v4 | |
with: | |
repository: Monika-After-Story/MonikaModDev | |
ref: ${{ steps.ghd.outputs.tag }} | |
ssh-key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
path: ./MonikaModDev | |
fetch-depth: 0 | |
- name: Diff and apply patch | |
id: update | |
run: >- | |
git -C ./MonikaModDev diff | |
"v$(grep -oP '(?<=renpy.config.version = ").+(?=")' ./game/0config.rpy)" | |
'${{ steps.ghd.outputs.tag }}' | |
-- 'Monika After Story/game/0config.rpy' 'Monika After Story/game/options.rpy' | patch -p2 | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
branch: mas-update | |
commit-message: ":sparkles: Monika After Story を ${{ steps.ghd.outputs.tag }} にアップデート" | |
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
title: Monika After Story を ${{ steps.ghd.outputs.tag }} にアップデート | |
body: | | |
この Pull Request は GitHub Actions により自動生成されています。 | |
毎朝 6 時に Monika After Story 本体の更新を確認し、更新します。 | |
labels: automated pr |