mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-15 19:22:54 +08:00
已添加 .github/workflows/core_auto_update.yml
This commit is contained in:
parent
1d43845a6e
commit
c057781314
42
.github/workflows/core_auto_update.yml
vendored
42
.github/workflows/core_auto_update.yml
vendored
|
@ -1,31 +1,31 @@
|
|||
name: core_auto_update
|
||||
|
||||
on:
|
||||
# release:
|
||||
# types: [published]
|
||||
# push:
|
||||
# tags:
|
||||
# - 'v*'
|
||||
# branches:
|
||||
# - master
|
||||
schedule:
|
||||
- cron: 0 18 * * *
|
||||
# watch:
|
||||
# types: [started]
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
update_singboxp:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Auto update singbox_core_PuerNya to prerelease
|
||||
uses: ./.github/workflows/update_singbox_core.yaml
|
||||
with:
|
||||
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
|
||||
|
||||
- name: Auto update singbox_core_PuerNya to prerelease
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const { data: { id } } = await octokit.request('GET /repos/{owner}/{repo}/actions/workflows', {
|
||||
owner: context.repo.owner,
|
||||
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'
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user