-
Notifications
You must be signed in to change notification settings - Fork 126
28 lines (27 loc) · 768 Bytes
/
push.yml
File metadata and controls
28 lines (27 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Push to subconverter
on:
push:
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
# 自动取消其他运行中的workflow
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
GIT_TOKEN: ${{secrets.REPO_TOKEN}}
steps:
- uses: actions/checkout@v6
- name: Push update to subconverter
if: ${{ github.ref == 'refs/heads/master' }}
uses: actions/github-script@v8
with:
github-token: ${{env.GIT_TOKEN}}
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: 'subconverter',
workflow_id: 'submodule.yml',
ref: 'simpleweb',
});