Обновить .gitea/workflows/automerge-with-core.yaml
This commit is contained in:
		| @@ -1,5 +1,7 @@ | |||||||
| name: Merge core/template-android-project to this repo | name: Merge core/template-android-project to this repo | ||||||
|  |  | ||||||
| env: | env: | ||||||
|  |   CORE_REPO: "https://git.sicampus.ru/core/template-android-project.git" | ||||||
|   TOKEN: ${{ secrets.PUSH_TOKEN }} |   TOKEN: ${{ secrets.PUSH_TOKEN }} | ||||||
|  |  | ||||||
| run-name: Merge core/template-android-project to ${{ gitea.repository }} | run-name: Merge core/template-android-project to ${{ gitea.repository }} | ||||||
| @@ -14,14 +16,11 @@ jobs: | |||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|       - run: echo "Merge core/template-android-project to ${{ gitea.repository }}" |       - run: echo "Merge core/template-android-project to ${{ gitea.repository }}" | ||||||
|       - run: | |       - name: Check out repository code | ||||||
|           git config --global credential.helper '!f() { sleep 1; echo "username=vladimir-shperling=${{ TOKEN }}"; }; f' |         uses: actions/checkout@v4 | ||||||
|           git clone https://sicampus.ru/gitea/${{ gitea.repository }} |       - name: Sync repos | ||||||
|           git remote add upstream https://sicampus.ru/gitea/core/template-android-project.git |         uses: Vova-SH/sync-upstream-repo@1.0.2 | ||||||
|           git fetch upstream |         with: | ||||||
|           git rebase upstream/main |           upstream_repo: ${{ env.CORE_REPO }} | ||||||
|           git push --force |           token: ${{ env.TOKEN }} | ||||||
|       - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." |           spawn_logs: false | ||||||
|       - 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 }}." |  | ||||||
		Reference in New Issue
	
	Block a user