AutoApiSS/.github/workflows/randomapi.yml
2024-04-02 11:34:43 +08:00

38 lines
907 B
YAML

#更新api排序
name: update randapi
on:
release:
types: [published]
push:
tags:
- 'v*'
# branches:
# - master
schedule:
- cron: '50 5 * * 1,3,5'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python #安装python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Update randapi #更新api排序
run: |
python updaterand.py
- name: Commit #上传新的排序到仓库
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git commit -a -m "update new randapi"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}