2024-03-03 17:13:52 +00:00
|
|
|
name: Merge core/template-android-project to this repo
|
|
|
|
|
|
|
|
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-03 18:05:42 +00:00
|
|
|
- run: |
|
2024-03-03 18:17:30 +00:00
|
|
|
git clone https://sicampus.ru/gitea/core/template-android-project /core
|
2024-03-03 18:03:06 +00:00
|
|
|
git clone https://sicampus.ru/gitea/${{ gitea.repository }} /repo
|
2024-03-03 18:06:48 +00:00
|
|
|
cd /repo
|
2024-03-03 18:17:30 +00:00
|
|
|
git remote add core /core
|
|
|
|
git fetch core
|
|
|
|
git merge --allow-unrelated-histories core/main
|
2024-03-03 18:21:21 +00:00
|
|
|
git push origin main --force
|
2024-03-03 18:22:31 +00:00
|
|
|
echo "OK"
|
2024-03-03 17:13:52 +00:00
|
|
|
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
|
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
|
|
|
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
|
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|