-
Notifications
You must be signed in to change notification settings - Fork 332
40 lines (30 loc) · 966 Bytes
/
build.yaml
File metadata and controls
40 lines (30 loc) · 966 Bytes
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
40
name: CI Build
on:
pull_request:
branches:
- develop
paths:
- 'docs/**'
- cassandra-schema.cql
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Nix
uses: cachix/install-nix-action@v16
- name: Clone wire-docs and build
run: |
git clone --branch main https://github.com/wireapp/wire-docs.git wire-docs
cd wire-docs
CURRENT_REPO_URL="https://github.com/${GITHUB_REPOSITORY}.git"
if [ -n "$GITHUB_HEAD_REF" ]; then
CURRENT_BRANCH="$GITHUB_HEAD_REF"
else
CURRENT_BRANCH="${GITHUB_REF#refs/heads/}"
fi
git config -f .gitmodules submodule.wire-server.branch ${CURRENT_BRANCH}
cat .gitmodules
make build
# tasks to update the submodule reference in wire-docs repo are yet to be added