更新 蓝奏云 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
- name: Push update to subconverter | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: actions/[email protected] | |
with: | |
github-token: ${{env.GIT_TOKEN}} | |
script: | | |
github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: 'subconverter', | |
workflow_id: 'sub-web.yml', | |
ref: 'main', | |
}); |