-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Erick Verleye
committed
Apr 16, 2024
1 parent
2d30b67
commit f050a62
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Sync with Template Repository | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
sync_template: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout main repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Configure Git for merge | ||
run: | | ||
git config --global user.name "github-actions" | ||
git config --global user.email "[email protected]" | ||
- name: Fetch template repository | ||
run: git fetch --no-tags --no-recurse-submodules https://github.com/CU-ESIIL/Working_group_OASIS.git +refs/heads/*:refs/remotes/template/* | ||
|
||
- name: Merge changes from template repository | ||
run: | | ||
git merge --no-commit --no-ff --allow-unrelated-histories template/main || true | ||
git checkout --ours . | ||
git add . | ||
- name: Commit changes | ||
run: git commit -am "Merge changes from template repository" | ||
|
||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |