Skip to content

mirror

mirror #146

Workflow file for this run

name: mirror
on:
workflow_dispatch:
schedule:
- cron: "30 11 * * *" # Run at 3:03am daily
jobs:
mirror-hgmo:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
path: "."
- name: Cinnabar cache
uses: actions/cache@v4
id: cache-cinnabar
with:
path: |
bin/git-cinnabar
bin/git-remote-hg
key: ${{ runner.os }}-${{ hashFiles('cinnabar-rev') }}
- if: ${{ steps.cache-cinnabar.outputs.cache-hit != 'true' }}
uses: actions-rust-lang/setup-rust-toolchain@v1
- if: ${{ steps.cache-cinnabar.outputs.cache-hit != 'true' }}
name: Build git-cinnabar
run: |
sudo apt-get update && sudo apt-get install libcurl4-openssl-dev ca-certificates
cargo install --git https://github.com/glandium/git-cinnabar --rev $(cat cinnabar-rev) --root . --no-track
ln -s git-cinnabar bin/git-remote-hg
- run: echo "`pwd`/bin" >> $GITHUB_PATH
- name: mirror https://hg.mozilla.org/comm-unified
uses: ./.github/actions/mirror-hgmo
with:
source-hg-repo-url: 'https://hg.mozilla.org/comm-unified'
source-hg-bookmarks: 'comm comm-beta comm-release comm-esr115 comm-esr128'