forked from beyondstorage/community
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 936 Bytes
/
team-sync.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
35
36
37
38
39
name: "Team Sync"
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
team_sync:
name: Team Sync
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: "1.16"
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout tools repo
uses: actions/checkout@v2
with:
repository: beyondstorage/go-community
path: go-community
ref: v0.4.0
- name: Build community tools
working-directory: go-community
run: make build
- name: Sync Team
if: ${{ github.ref == 'refs/heads/master' }}
env:
COMMUNITY_GITHUB_OWNER: beyondstorage
COMMUNITY_GITHUB_ACCESS_TOKEN: ${{ secrets.COMMUNITY_GITHUB_ACCESS_TOKEN }}
run: ./go-community/bin/community team sync --teams teams.toml --repos repos.toml