已添加 .github/workflows/core_auto_update.yml
This commit is contained in:
36
.github/workflows/core_auto_update.yml
vendored
36
.github/workflows/core_auto_update.yml
vendored
@@ -1,31 +1,31 @@
|
|||||||
name: core_auto_update
|
name: core_auto_update
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# release:
|
|
||||||
# types: [published]
|
|
||||||
# push:
|
|
||||||
# tags:
|
|
||||||
# - 'v*'
|
|
||||||
# branches:
|
|
||||||
# - master
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 18 * * *
|
- cron: 0 18 * * *
|
||||||
# watch:
|
|
||||||
# types: [started]
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_singboxp:
|
update_singboxp:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Auto update singbox_core_PuerNya to prerelease
|
- name: Auto update singbox_core_PuerNya to prerelease
|
||||||
uses: ./.github/workflows/update_singbox_core.yaml
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
tag1: PuerNya/sing-box
|
script: |
|
||||||
tag2: building
|
const { data: { id } } = await octokit.request('GET /repos/{owner}/{repo}/actions/workflows', {
|
||||||
tag3: singbox_core_PuerNya
|
owner: context.repo.owner,
|
||||||
tag5: with_quic,with_dhcp,with_wireguard,with_shadowsocksr,with_ech,with_utls,with_clash_api,with_gvisor
|
repo: context.repo.repo
|
||||||
|
});
|
||||||
|
await octokit.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', {
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
workflow_id: 'update_singbox_core.yaml',
|
||||||
|
ref: 'dev',
|
||||||
|
inputs: {
|
||||||
|
tag1: 'PuerNya/sing-box',
|
||||||
|
tag2: 'building',
|
||||||
|
tag3: 'singbox_core_PuerNya',
|
||||||
|
tag5: 'with_quic,with_dhcp,with_wireguard,with_shadowsocksr,with_ech,with_utls,with_clash_api,with_gvisor'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user