-
-
Notifications
You must be signed in to change notification settings - Fork 49
34 lines (30 loc) · 1.13 KB
/
openfleet-file-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Update files in OpenFleets repos
on:
push:
paths:
- 'settings.ini'
- 'balena/**'
workflow_dispatch:
jobs:
file-update:
if: github.ref_name == 'master' || github.ref_name == 'production' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sbc: [hnt_openfleet_template, nebra-indoor1, nebra-outdoor1, nebra-indoor2, nebra-outdoor2, rak, pisces, og, sensecap, finestra, controllino, cotx, pantherx1, linxdot, linxdot-rk3566, pycom, syncrobit, syncrobit-rkcm3, risinghf, midas, bobcat-px30, bobcat-rk3566]
steps:
- name: Generate repo name
run: |
if [ "${{ matrix.sbc }}" = "hnt_openfleet_template" ]; then
FLEET="${{ matrix.sbc }}"
else
FLEET="helium-${{ matrix.sbc }}"
fi
echo "FLEET=$FLEET" >> $GITHUB_ENV
- name: Trigger PR action in ${{ env.FLEET }} repo
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.MR_BUMP }}
event-type: file-update
repository: NebraLtd/${{ env.FLEET }}