Files
gamedir/.github/workflows/trigger-source.yml
T
2023-01-22 00:25:13 +01:00

28 lines
580 B
YAML

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.issues.createWorkflowDispatch({
'1dot13',
'source',
'build.yml',
'master',
});