Skip to content

Commit

Permalink
Initial CI
Browse files Browse the repository at this point in the history
  • Loading branch information
delan committed Feb 7, 2024
1 parent 1a8bb7f commit 995059e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 995059e

Please sign in to comment.