mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 03:32:34 +08:00
已修改 .github/workflows/core_auto_update.yml
已修改 .github/workflows/update_singbox_core.yaml
This commit is contained in:
parent
575f1d5d4b
commit
381d905ed9
34
.github/workflows/core_auto_update.yml
vendored
34
.github/workflows/core_auto_update.yml
vendored
|
@ -9,35 +9,11 @@ jobs:
|
||||||
update_singboxp:
|
update_singboxp:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: '14'
|
|
||||||
|
|
||||||
- name: Auto update singbox_core_PuerNya to prerelease
|
- name: Auto update singbox_core_PuerNya to prerelease
|
||||||
uses: actions/github-script@v7
|
uses: juewuy/ShellCrash/.github/workflows/update_singbox_core.yaml@dev
|
||||||
with:
|
with:
|
||||||
script: |
|
tag1: PuerNya/sing-box
|
||||||
const { GitHub } = require('@actions/github');
|
tag2: building
|
||||||
const github = new GitHub(process.env.GITHUB_TOKEN);
|
tag3: singbox_core_PuerNya
|
||||||
|
tag5: with_quic,with_dhcp,with_wireguard,with_shadowsocksr,with_ech,with_utls,with_clash_api,with_gvisor
|
||||||
|
|
||||||
const { data: { workflows } } = await github.actions.listRepoWorkflows({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo
|
|
||||||
});
|
|
||||||
|
|
||||||
const targetWorkflow = workflows.find(workflow => workflow.name === 'update_singbox_core');
|
|
||||||
const workflowID = targetWorkflow.id;
|
|
||||||
|
|
||||||
await github.actions.createWorkflowDispatch({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
workflow_id: workflowID,
|
|
||||||
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'
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
18
.github/workflows/update_singbox_core.yaml
vendored
18
.github/workflows/update_singbox_core.yaml
vendored
|
@ -23,6 +23,24 @@ on:
|
||||||
description: 'build tags'
|
description: 'build tags'
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
tag1:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
tag2:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
tag3:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
tag4:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
tag5:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
go:
|
go:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue
Block a user