-
Notifications
You must be signed in to change notification settings - Fork 34
53 lines (46 loc) · 1.42 KB
/
publish-holobranches.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Publish Holobranches
on:
push:
tags: [ 'v3.*' ]
jobs:
publish-holobranches:
runs-on: ubuntu-latest
steps:
- name: 'Update holobranch: emergence/skeleton/v3'
uses: JarvusInnovations/hologit@actions/projector/v1
env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
HAB_LICENSE: accept
with:
holobranch: emergence-skeleton
commit-to: emergence/skeleton/v3
- name: 'Update holobranch: emergence/vfs-site/v3'
uses: JarvusInnovations/hologit@actions/projector/v1
env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
HAB_LICENSE: accept
with:
holobranch: emergence-vfs-site
commit-to: emergence/vfs-site/v3
- name: 'Update v3.laddr.us'
env:
VFS_DEV_TOKEN: ${{ secrets.VFS_DEV_TOKEN }}
run: |
# pull latest commit
curl -X POST \
--silent \
--show-error \
--fail \
-H "Authorization: Token ${VFS_DEV_TOKEN}" \
-H "Accept: application/json" \
"http://v3.laddr.us/site-admin/sources/laddr/pull?fetch=true" \
| jq '.'
# sync VFS to git
curl -X POST \
--silent \
--show-error \
--fail \
-H "Authorization: Token ${VFS_DEV_TOKEN}" \
-H "Accept: application/json" \
"http://v3.laddr.us/site-admin/sources/laddr/sync-to-vfs" \
| jq '.'