forked from mongodb/atlas-cli-plugin-example
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 812 Bytes
/
copybara.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
name: Copybara
on:
workflow_dispatch:
permissions:
contents: write
jobs:
copybara:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set env
run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build Copybara
run: |
# Clone the Copybara repository
git clone --depth=1 https://github.com/google/copybara ${GITHUB_WORKSPACE}/copybara
# Build the Docker image
docker build -t google/copybara ${GITHUB_WORKSPACE}/copybara
- name: Run Copybara
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
WORKFLOW: docs-atlas-cli-fork
TAG: ${{ env.TAG }}
run: |
pwd
cd build/ci
bash ./run-copybara.sh