diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000000..022c5556ba --- /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 -u origin 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