0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-13 04:30:46 -05:00

Initial pass as sub-project pipeline... Needs gitea update to test

This commit is contained in:
Refringe 2024-03-12 18:38:04 -04:00
parent 8997d80e93
commit 70454fe0bc
Signed by: Refringe
GPG Key ID: 7715B85B4A6306ED
2 changed files with 39 additions and 4 deletions

View File

@ -1,11 +1,11 @@
name: SPT Release Build name: SPT Release Build
on: on:
schedule: schedule:
- cron: '* 19 * * *' # Every day at 7pm UTC (3pm ET) - cron: '* 19 * * *' # Every day at 7pm UTC (3pm ET)
push: push:
branches: [ main ] branches: [ trigger ]
pull_request:
branches: [ main ]
jobs: jobs:
prepare: prepare:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -1 +1,36 @@
# TODO: Gitea Version name: Trigger Main Build Pipeline
on:
push:
tags:
- '*'
jobs:
trigger-main-build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Git Config
run: |
git config --global user.email "me@refringe.com"
git config --global user.name "TriggerBot"
- name: Clone Build Repository
run: git clone https://${{ secrets.BUILD_USERNAME }}:${{ secrets.BUILD_PASSWORD }}@git.refringe.com/refringe/Build.git ../main-build-repo
- name: Trigger Branch
working-directory: ../main-build-repo
run: git checkout -b trigger || git checkout trigger
- name: Create trigger_tag File
working-directory: ../main-build-repo
run: |
echo "${GITHUB_REF_NAME}" > trigger_tag
git add trigger_tag
git commit -m "Update trigger_tag with ${GITHUB_REF_NAME}"
- name: Force Push
working-directory: ../main-build-repo
run: git push --force origin trigger