update workflow

This commit is contained in:
jie Ago 2024-04-02 11:34:43 +08:00
parent aef38f51f8
commit aaedf710d3
3 changed files with 12 additions and 14 deletions

View File

@ -18,9 +18,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python #安装python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install requests #安装requests

View File

@ -18,9 +18,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python #安装python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Update randapi #更新api排序
@ -28,10 +28,9 @@ jobs:
python updaterand.py
- name: Commit #上传新的排序到仓库
run: |
git config --global user.email AutoupdateRobot@email.com
git config --global user.name AutoupdateRobot
git add .
git commit -m "update new randapi" -a
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:

View File

@ -19,9 +19,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python #安装python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install requests #安装requests
@ -55,10 +55,9 @@ jobs:
rm -f keylist2.txt
- name: Commit #上传新的refresh_token到仓库
run: |
git config --global user.email AutoupdateRobot@email.com
git config --global user.name AutoupdateRobot
git add .
git commit -m "update new refresh_token" -a
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 refresh_token"
- name: Push changes
uses: ad-m/github-push-action@master
with: