-
-
Notifications
You must be signed in to change notification settings - Fork 157
30 lines (25 loc) · 727 Bytes
/
sync.yml
File metadata and controls
30 lines (25 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Sync Upstream
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
sync:
name: Sync
if: "github.repository_owner == 'mollyim'"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: upstream
fetch-depth: 0
token: ${{ secrets.PUBLISH_PAT || secrets.GITHUB_TOKEN }}
- name: Fetch and merge upstream
run: |
git remote add upstream https://github.com/signalapp/Signal-Android.git
git fetch upstream
git merge --ff-only upstream/main
- name: Push changes
run: |
git push origin upstream
git tag | grep -xP 'v\d+(?:\.\d+){2,3}' | xargs -r git push origin