2024-03-28 15:52:56 +01:00
|
|
|
name: Trigger Main Build Pipeline
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
trigger-main-build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Setup Git Config
|
|
|
|
run: |
|
2024-03-29 01:25:55 +01:00
|
|
|
git config --global user.email "noreply@sp-tarkov.com"
|
2024-03-28 15:52:56 +01:00
|
|
|
git config --global user.name "TriggerBot"
|
|
|
|
|
|
|
|
- name: Clone Build Repository
|
|
|
|
run: |
|
|
|
|
rm -rf ../Build
|
2024-05-21 23:30:27 +02:00
|
|
|
git clone https://${{ secrets.BUILD_USERNAME }}:${{ secrets.BUILD_ACCESS_TOKEN }}@dev.sp-tarkov.com/SPT/Build.git ../Build
|
2024-03-28 15:52:56 +01:00
|
|
|
|
|
|
|
- name: Trigger Branch
|
|
|
|
working-directory: ../Build
|
|
|
|
run: git checkout -b trigger || git checkout trigger
|
|
|
|
|
|
|
|
- name: Create Trigger File
|
|
|
|
working-directory: ../Build
|
|
|
|
run: |
|
|
|
|
echo "${GITHUB_REF_NAME}" > .gitea/trigger
|
|
|
|
git add .gitea/trigger
|
|
|
|
git commit -m "Server triggered build with tag '${GITHUB_REF_NAME}'"
|
|
|
|
|
|
|
|
- name: Force Push
|
|
|
|
working-directory: ../Build
|
|
|
|
run: git push --force origin trigger
|