2024-03-03 17:13:52 +00:00
|
|
|
name: Merge core/template-android-project to this repo
|
|
|
|
|
2024-03-09 13:48:08 +00:00
|
|
|
env:
|
2024-03-09 13:50:03 +00:00
|
|
|
CORE_REPO: "https://git.sicampus.ru/core/template-android-project.git"
|
2024-03-09 13:48:08 +00:00
|
|
|
TOKEN: ${{ secrets.PUSH_TOKEN }}
|
|
|
|
|
2024-03-03 17:13:52 +00:00
|
|
|
run-name: Merge core/template-android-project to ${{ gitea.repository }}
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
merge-if-needed:
|
2024-03-03 17:33:58 +00:00
|
|
|
if: ${{ !contains(gitea.repository, 'core/template-android-project' ) }}
|
2024-03-03 17:13:52 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-03 18:03:06 +00:00
|
|
|
- run: echo "Merge core/template-android-project to ${{ gitea.repository }}"
|
2024-03-09 13:48:08 +00:00
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Sync repos
|
2024-03-09 19:41:54 +00:00
|
|
|
uses: Vova-SH/sync-upstream-repo@1.0.1
|
2024-03-09 13:48:08 +00:00
|
|
|
with:
|
2024-03-09 15:59:53 +00:00
|
|
|
upstream_repo: ${{ env.CORE_REPO }}
|
2024-03-09 13:48:08 +00:00
|
|
|
token: ${{ env.TOKEN }}
|
2024-03-09 19:33:42 +00:00
|
|
|
spawn_logs: false
|