From 2e2aed5500853fe4ab50621d78c3dbe9312a5297 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Wed, 6 Oct 2021 12:08:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=8B=E5=8A=A8=E5=88=B7?= =?UTF-8?q?=E6=96=B0=20Release/API=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Refresh_API.yml | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/Refresh_API.yml diff --git a/.github/workflows/Refresh_API.yml b/.github/workflows/Refresh_API.yml new file mode 100644 index 0000000..751d74a --- /dev/null +++ b/.github/workflows/Refresh_API.yml @@ -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 \ No newline at end of file