From 5812fd25e4866bef94fd3f22621f4d5ac90c5788 Mon Sep 17 00:00:00 2001 From: CptMoore <39010654+CptMoore@users.noreply.github.com> Date: Sat, 21 Jan 2023 13:51:27 +0100 Subject: [PATCH] Add trigger-source workflow. --- .editorconfig | 16 ++++++++++++++++ .github/workflows/trigger-source.yml | 27 +++++++++++++++++++++++++++ .gitignore | 1 + 3 files changed, 44 insertions(+) create mode 100644 .editorconfig create mode 100644 .github/workflows/trigger-source.yml create mode 100644 .gitignore diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..04f5f1230 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.github/workflows/trigger-source.yml b/.github/workflows/trigger-source.yml new file mode 100644 index 000000000..d3029f566 --- /dev/null +++ b/.github/workflows/trigger-source.yml @@ -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', + }); diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..9f11b755a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/