From 8a5f07cfba876b73b4eecd203db5b24d5eda51ef Mon Sep 17 00:00:00 2001 From: Igor Date: Thu, 6 Apr 2023 14:06:29 +0200 Subject: [PATCH] Add Action to execute remote workflow on config changes --- .github/workflows/build-train.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/build-train.yml diff --git a/.github/workflows/build-train.yml b/.github/workflows/build-train.yml new file mode 100644 index 0000000000..ac34fe922a --- /dev/null +++ b/.github/workflows/build-train.yml @@ -0,0 +1,19 @@ +name: Run build train on config changes +on: + push: + paths: + - 'config/*.config' + +jobs: + + Run: + name: "Execute workflow" + if: ${{ github.repository_owner == 'Armbian' }} + runs-on: ubuntu-latest + steps: + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.ACCESS_TOKEN }} + repository: armbian/os + event-type: "Repository update"