mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
add on release get data
This commit is contained in:
parent
a3a736e64b
commit
a7a7e0e116
8
.github/workflows/data.yml
vendored
8
.github/workflows/data.yml
vendored
@ -7,6 +7,10 @@
|
|||||||
|
|
||||||
name: Data
|
name: Data
|
||||||
on:
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- created
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
push:
|
push:
|
||||||
@ -68,7 +72,7 @@ jobs:
|
|||||||
python scripts/func.py getmodules -w "rr/ws" -j "docs/modules.json" -x "docs/modules.xlsx"
|
python scripts/func.py getmodules -w "rr/ws" -j "docs/modules.json" -x "docs/modules.xlsx"
|
||||||
|
|
||||||
- name: Upload to Artifacts
|
- name: Upload to Artifacts
|
||||||
if: success() && inputs.push == false
|
if: success()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: addons
|
name: addons
|
||||||
@ -78,7 +82,7 @@ jobs:
|
|||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
- name: Check and Push
|
- name: Check and Push
|
||||||
if: success() && inputs.push == true
|
if: success() && (inputs.push == true || github.event.action == 'created')
|
||||||
run: |
|
run: |
|
||||||
echo "Git push ..."
|
echo "Git push ..."
|
||||||
git pull
|
git pull
|
||||||
|
Loading…
x
Reference in New Issue
Block a user