-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (31 loc) · 1.03 KB
/
merge.yml
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
31
32
33
34
35
36
37
38
39
name: Automatic Merge with Js_of_ocaml
on:
schedule:
- cron: '0 0 * * *' # Executes daily at midnight UTC
workflow_dispatch: # Allows manual triggering of the workflow
permissions:
contents: write
jobs:
merge:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 1000
- name: Set Git committer identity
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Fetch js_of_ocaml master
run: git fetch https://github.com/ocsigen/js_of_ocaml.git master
- name: Merge js_of_ocaml master into current repository
run: git merge FETCH_HEAD
- name: Push merged changes to 'jsoo-merged' branch
run: |
if git show-ref --verify --quiet refs/heads/jsoo-merged; then
git branch -D jsoo-merged
fi
git checkout -b jsoo-merged
git push --force origin jsoo-merged