From 995059ef2dcc0f6dd61a3e659e96067d9d940f3a Mon Sep 17 00:00:00 2001 From: Delan Azabani Date: Wed, 7 Feb 2024 18:35:00 +0800 Subject: [PATCH] Initial CI --- .github/workflows/sync.yml | 23 +++++++++++++++++++++++ init.sh | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000000..1715a18ded --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,23 @@ +name: Sync + +on: + # schedule: + # - cron: '0 13 * * *' + workflow_dispatch: + +jobs: + sync: + name: Sync with mozilla-central + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - uses: actions/cache@v3 + with: + path: cache/upstream + key: upstream + - run: | + ./init.sh filtered + git fetch ./filtered master + git push -fu origin master:master diff --git a/init.sh b/init.sh index d8a4350031..f29bb57777 100755 --- a/init.sh +++ b/init.sh @@ -31,7 +31,7 @@ fi step Cloning upstream if needed if ! [ -e upstream ]; then - git clone --bare --single-branch https://github.com/mozilla/gecko-dev.git upstream + git clone --bare --single-branch --progress https://github.com/mozilla/gecko-dev.git upstream fi step Updating upstream