Update go.mod and go.sum to latest version from networkservicemesh/sd… #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |