chore(deps): update dependency numpy to v2.1.0 #173
Workflow file for this run
This file contains hidden or 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: Get mhy wish | |
on: | |
push: | |
branches: | |
- master | |
- dev-py | |
paths: | |
- "script/requirements.txt" | |
- ".github/workflows/get-mhy-wish.yml" | |
- "script/mihoyo*" | |
- "script/miyoushe.py" | |
- "script/hoyolab.py" | |
pull_request: | |
types: [opened, synchronize] | |
branches: | |
- master | |
- dev-py | |
paths: | |
- "script/requirements.txt" | |
- ".github/workflows/get-mhy-wish.yml" | |
- "script/mihoyo*" | |
- "script/miyoushe.py" | |
- "script/hoyolab.py" | |
schedule: | |
# This is run at midnight UTC on Monday, Tuesday and Wednesday | |
- cron: "0 16 * * 1-3" | |
# 在 UTC 时间的凌晨 4 点执行(周二)(即周二的中午 UTC+8) | |
- cron: "0 4 * * 2" | |
jobs: | |
py-game-wish: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./script | |
steps: | |
- name: Checkout repository content | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Execute Python script | |
run: | | |
python miyoushe.py | |
python hoyolab.py 1 | |
python mihoyo2.py | |
python mihoyo2_old.py | |
python mihoyo8char.py | |
python mihoyo8js.py | |
python mihoyo8char_img.py | |
- name: Commit files | |
id: commit | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
cd .. | |
pwd | |
git add . | |
if git diff --cached --quiet; then | |
echo "No changes to commit" | |
echo "has_changes=false" >> $GITHUB_OUTPUT | |
else | |
git commit -m "feat: auto wish" -a | |
echo "has_changes=true" >> $GITHUB_OUTPUT | |
fi | |
# - name: Push changes | |
# uses: ad-m/github-push-action@master | |
# with: | |
# github_token: ${{ secrets.DEPLOY_GH }} | |
# branch: ${{ github.head_ref }} | |
- name: Create Pull Request | |
if: ${{ steps.commit.outputs.has_changes == 'true' }} | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.DEPLOY_GH }} | |
title: "feat: auto get mhy wish" | |
commit-message: "feat: auto get mhy wish" | |
committer: GitHub <noreply@github.com> | |
author: GitHub <noreply@github.com> | |
branch: create-pull-request/patch | |
base: master | |
labels: | | |
report | |
automated pr | |
assignees: DrAugus | |
# Review cannot be requested from pull request author. | |
# reviewers: DrAugus |