mirror of
https://github.com/1dot13/gamedir.git
synced 2026-07-22 13:40:25 +02:00
Add trigger-source workflow.
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*.{js,json,yml,yaml}]
|
||||||
|
charset = utf-8
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.{ini,INI,xml,XML}]
|
||||||
|
# need to make sure existing files are converted to utf8 first
|
||||||
|
#charset = utf-8
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 4
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
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',
|
||||||
|
});
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.idea/
|
||||||
Reference in New Issue
Block a user