chore: [AB#17147] disable build for content-repo PRs #150
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
| name: Merge content-repo from main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| merge-content: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout full repo | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure Git user | |
| run: | | |
| git config --global user.email "business-engineering@innovation.nj.gov" | |
| git config --global user.name "NJ Innovation CI" | |
| - name: Fetch content-repo branch | |
| run: git fetch origin content-repo | |
| - name: Merge main into content-repo | |
| run: | | |
| git checkout content-repo | |
| git merge origin/main --no-edit | |
| - name: Push merged branch | |
| run: git push origin content-repo |