已添加 .github/workflows/core_auto_update.yml

This commit is contained in:
juewuy
2024-03-23 15:20:53 +08:00
parent 1d43845a6e
commit c057781314

View File

@@ -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 - name: Auto update singbox_core_PuerNya to prerelease
uses: actions/checkout@v2 uses: actions/github-script@v7
with:
- name: Auto update singbox_core_PuerNya to prerelease script: |
uses: ./.github/workflows/update_singbox_core.yaml const { data: { id } } = await octokit.request('GET /repos/{owner}/{repo}/actions/workflows', {
with: owner: context.repo.owner,
tag1: PuerNya/sing-box repo: context.repo.repo
tag2: building });
tag3: singbox_core_PuerNya await octokit.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', {
tag5: with_quic,with_dhcp,with_wireguard,with_shadowsocksr,with_ech,with_utls,with_clash_api,with_gvisor 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'
}
});