Add Action to execute remote workflow on config changes

This commit is contained in:
Igor 2023-04-06 14:06:29 +02:00 committed by Ricardo Pardini
parent 97a2e41f62
commit 8a5f07cfba

19
.github/workflows/build-train.yml vendored Normal file
View File

@ -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"