添加手动刷新 Release/API workflow
This commit is contained in:
parent
bc880e5a4a
commit
2e2aed5500
|
@ -0,0 +1,36 @@
|
||||||
|
###########################################################
|
||||||
|
# Description: Compile OpenWrt by GitHub Actions #
|
||||||
|
# Based on: https://github.com/P3TERX/Actions-OpenWrt #
|
||||||
|
# Author: Hyy2001X #
|
||||||
|
###########################################################
|
||||||
|
|
||||||
|
name: Refresh_API
|
||||||
|
|
||||||
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
refresh_switch:
|
||||||
|
description: '刷新 Release/API'
|
||||||
|
default: 'true'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@main
|
||||||
|
|
||||||
|
- name: Download Github Release API
|
||||||
|
run: |
|
||||||
|
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
|
||||||
|
|
||||||
|
- name: Upload API to Github Release
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: ./API
|
||||||
|
file_glob: true
|
||||||
|
tag: AutoUpdate
|
||||||
|
overwrite: true
|
Loading…
Reference in New Issue