forked from carbon-language/carbon-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 908 Bytes
/
sync_repos.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
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: sync-repos
on:
push:
branches: [trunk]
paths:
# Minimize where we run this to changes to the top-level files and
# specific trees that we sync to other repositories.
- '*'
- 'utils/**'
# Also run if the action itself is updated.
- '.github/workflows/sync_repos.yaml'
- 'scripts/sync_repos.sh'
jobs:
sync-repos:
runs-on: ubuntu-latest
steps:
# Checkout our main repository.
- name: Checkout the main repository
uses: actions/checkout@v2
# Run the sync script.
- name: Sync to other repositories
env:
API_TOKEN_GITHUB: ${{ secrets.SYNC_REPOS_API_TOKEN_GITHUB }}
run: ./scripts/sync_repos.sh