31 lines
961 B
YAML
31 lines
961 B
YAML
name: Merge core/template-android-project to this repo
|
|
|
|
env:
|
|
CORE_REPO: "https://git.sicampus.ru/core/template-android-project.git"
|
|
TOKEN: ${{ secrets.PUSH_TOKEN }}
|
|
|
|
run-name: Merge core/template-android-project to ${{ gitea.repository }}
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
merge-if-needed:
|
|
if: ${{ !contains(gitea.repository, 'core/template-android-project' ) }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: echo "Merge core/template-android-project to ${{ gitea.repository }}"
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: Sync repos
|
|
uses: Vova-SH/sync-upstream-repo@master
|
|
with:
|
|
mode: branch-to-branch
|
|
upstream_repo_url: ${{ env.CORE_REPO }}
|
|
upstream_branch: main
|
|
downstream_repo_url: https://git.sicampus.ru/${{ gitea.repository }}
|
|
token: ${{ env.TOKEN }}
|
|
merge_strategy: rebase
|
|
spawn_logs: true
|
|
|