Sync to Staging #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |