Skip to content

Commit

Permalink
ci: Checkout and build directly (#16)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Jul 13, 2021
1 parent 461e2f6 commit a041388
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/team-sync.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: "Team Sync"

on:
push:
branches:
- master
on: [ push, pull_request ]

jobs:
team_sync:
Expand All @@ -19,11 +16,20 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup community tools
run: curl -sSL "https://github.com/beyondstorage/go-community/releases/download/v0.1.0/community_0.1.0_linux_x86_64.tar.gz" -o community.tar.gz && tar -xvf community.tar.gz && ./community --help
- name: Checkout tools repo
uses: actions/checkout@v2
with:
repository: beyondstorage/go-community
path: go-community
ref: v0.2.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: ./community team sync --path teams.toml
run: ./go-community/bin/community team sync --path teams.toml

0 comments on commit a041388

Please sign in to comment.