mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
remove cross-repo dispatch workflows
These triggered source's release workflow on gamedir pushes. In the monorepo a push to master triggers it directly, and GitHub ignores workflow files outside the repository root anyway.
This commit is contained in:
@@ -1,30 +0,0 @@
|
|||||||
name: trigger-source
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'main'
|
|
||||||
- 'master'
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
actions: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
trigger:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository_owner == '1dot13'
|
|
||||||
steps:
|
|
||||||
- uses: actions/github-script@v6
|
|
||||||
with:
|
|
||||||
# add a valid token as secret to 1dot13 organisation
|
|
||||||
github-token: ${{ secrets.DISPATCH_1DOT13_SOURCE }}
|
|
||||||
script: |
|
|
||||||
github.rest.actions.createWorkflowDispatch({
|
|
||||||
owner: '1dot13',
|
|
||||||
repo: 'source',
|
|
||||||
workflow_id: 'release.yml',
|
|
||||||
ref: 'master',
|
|
||||||
inputs: {
|
|
||||||
assemble_release: true
|
|
||||||
}
|
|
||||||
});
|
|
||||||
-30
@@ -1,30 +0,0 @@
|
|||||||
name: trigger-source
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'main'
|
|
||||||
- 'master'
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
actions: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
trigger:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository_owner == '1dot13'
|
|
||||||
steps:
|
|
||||||
- uses: actions/github-script@v8
|
|
||||||
with:
|
|
||||||
# add a valid token as secret to 1dot13 organisation
|
|
||||||
github-token: ${{ secrets.DISPATCH_1DOT13_SOURCE }}
|
|
||||||
script: |
|
|
||||||
github.rest.actions.createWorkflowDispatch({
|
|
||||||
owner: '1dot13',
|
|
||||||
repo: 'source',
|
|
||||||
workflow_id: 'release.yml',
|
|
||||||
ref: 'master',
|
|
||||||
inputs: {
|
|
||||||
assemble_release: true
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Reference in New Issue
Block a user