-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.35 KB
/
update.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Update
on:
schedule:
- cron: "0 6 * * *" # Daily at 6AM UTC
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v3
- name: Checkout git-cinnabar
uses: actions/checkout@v3
with:
repository: glandium/git-cinnabar
path: git-cinnabar
- name: Main steps
run: |
cd git-cinnabar
./download.py
PATH="$GITHUB_WORKSPACE/git-cinnabar:$PATH"
git-cinnabar --version
cd ..
git clone hg::https://hg.mozilla.org/mozilla-unified gecko && cd gecko
git checkout bookmarks/central
echo "git revision" && git log -1 --format='%H'
echo "hg revision" && git cinnabar git2hg $(git log -1 --format='%H')
./mach --no-interactive bootstrap
./mach --no-interactive build
./mach storybook build
- name: Delete old docs
run: |
rm -rf docs
- name: Move built Storybook
run: >
mv gecko/browser/components/storybook/storybook-static docs
- name: Commit changes
run: |
git config user.name github-actions
git config user.email [email protected]
git add docs
git commit -m "$(git -C ./gecko show -s --format=%cs)"
git push