mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-21 21:18:05 +00:00
CI: change to gitea
All checks were successful
Github commit to telegram / build (push) Successful in 1m8s
All checks were successful
Github commit to telegram / build (push) Successful in 1m8s
This commit is contained in:
parent
2f4b23f84f
commit
0ab13cce2a
@ -18,8 +18,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# 此步骤使用 GitHub 的 https://github.com/actions/checkout
|
||||
- name: checkout actions
|
||||
uses: actions/checkout@v3
|
||||
- name: checkout gh
|
||||
run: |
|
||||
git clone https://${{ secrets.GH_PAT }}:@github.com/${{ gitea.repository }} .
|
||||
|
||||
# 设置python环境
|
||||
# 此步骤使用 GitHub 的 https://github.com/actions/setup-python
|
||||
@ -45,7 +46,7 @@ jobs:
|
||||
python update_list.py
|
||||
|
||||
# Auto commit
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
# Optional. Commit message for the created commit.
|
||||
# Defaults to "Apply automatic changes"
|
36
.github/workflows/telegraph.yml
vendored
36
.github/workflows/telegraph.yml
vendored
@ -1,36 +0,0 @@
|
||||
name: Plugins Data To Telegraph
|
||||
|
||||
on:
|
||||
workflow_dispatch: ~
|
||||
push:
|
||||
branches:
|
||||
- v2
|
||||
paths:
|
||||
- 'list.json'
|
||||
- 'telegraph_update.py'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# 此步骤使用 GitHub 的 https://github.com/actions/checkout
|
||||
- name: checkout actions
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# 设置python环境
|
||||
# 此步骤使用 GitHub 的 https://github.com/actions/setup-python
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: 3.9
|
||||
|
||||
# 安装依赖
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install telegraph
|
||||
|
||||
# 更新数据
|
||||
- name: Update Telegraph
|
||||
run: |
|
||||
python telegraph_update.py ${{ secrets.TELEGRAPH_TOKEN }}
|
Loading…
Reference in New Issue
Block a user