generated from networkservicemesh/cmd-template
-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (49 loc) · 1.73 KB
/
update-cmd-repositories.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
name: Update dependent repositories
on:
push:
branches:
- main
jobs:
fetch-repositories:
name: Fetch organization repositories
runs-on: ubuntu-latest
outputs:
repositories: ${{ steps.organization-repositories.outputs.repositories }}
steps:
- name: Run `get-organization-repositories`
id: organization-repositories
uses: denis-tingajkin/[email protected]
with:
github-organization: 'networkservicemesh'
regex: 'cmd-.*'
update-dependent-repositories:
strategy:
matrix:
repository: ${{ fromJSON(needs.fetch-repositories.outputs.repositories) }}
needs: fetch-repositories
name: Update ${{ matrix.repository }}
runs-on: ubuntu-latest
if: github.repository == 'networkservicemesh/cmd-template'
steps:
- name: Checkout ${{ matrix.repository }}
uses: actions/checkout@v2
with:
path: ${{ matrix.repository }}
repository: ${{ matrix.repository}}
token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }}
- name: Sync config files
if: matrix.repository != 'networkservicemesh/cmd-template'
uses: denis-tingajkin/[email protected]
with:
git-author-email: '[email protected]'
git-author-name: 'NSMBot'
sync-branch-name: main
sync-repository: ${{ github.repository }}
sync-ignore-file-name: .templateignore
result-branch-name: update/${{ github.repository }}
working-directory: ${{ matrix.repository }}
allow-files-pattern: (.*\.yaml|.*\.yml|.*\.txt|.*\.md|.*\.conf)
exclude-files: |
.github/workflows/update-cmd-repositories.yaml
.golangci.yml