Skip to content

Sync to Staging

Sync to Staging #2

# Sync to Staging Repository
# This workflow pushes changes to the internal staging repo whenever main is updated
name: Sync to Staging
on:
push:
branches:
- main
workflow_dispatch:
jobs:
sync:
name: Push to Staging Repo
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to staging repository
run: |
git remote add staging https://x-access-token:${{ secrets.STAGING_REPO_TOKEN }}@github.com/NVIDIA-AI-IOT/jetson-ai-lab-stg.git
git push staging main --force
- name: Summary
run: |
echo "## Sync to Staging Complete" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "✅ Pushed to [jetson-ai-lab-stg](https://github.com/NVIDIA-AI-IOT/jetson-ai-lab-stg)" >> $GITHUB_STEP_SUMMARY