Update #254
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |