-
Notifications
You must be signed in to change notification settings - Fork 39
37 lines (32 loc) · 1.05 KB
/
docs-to-vector.yml
File metadata and controls
37 lines (32 loc) · 1.05 KB
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
name: Docs to Vector
on:
workflow_dispatch:
push:
branches:
- master
- docs-to-vector
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Call Webhook (Master)
if: ${{ github.ref_name == 'master' }}
run: |
curl -X POST \
-H "Content-Type: application/json" \
-d '{"commit_id": "${{ github.sha }}", "branch": "${{ github.ref_name }}"}' \
${{ secrets.VECTOR_WEBHOOK_URL }}
- name: Connect to company network
if: ${{ github.ref_name != 'master' }}
uses: tailscale/github-action@v3
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- name: Call Webhook (Preview)
if: ${{ github.ref_name != 'master' }}
run: |
curl -X POST \
-H "Content-Type: application/json" \
-d '{"commit_id": "${{ github.sha }}", "branch": "${{ github.ref_name }}"}' \
${{ secrets.VECTOR_WEBHOOK_URL_PREVIEW }}