fix(dashboards): rename lineage field to outbreakLineage and update v… #465
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: Create PR to Update Prod | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| create-pr: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout main branch | |
| uses: actions/checkout@v7.0.0 | |
| with: | |
| ref: main | |
| - name: Create Pull Request to prod | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| if gh pr list --base prod --head main --state open --json number | jq -e '. | length > 0'; then | |
| echo "PR to update prod from main already exists - skipping creation" | |
| else | |
| body="This pull request updates the \`prod\` branch with the latest changes from the \`main\` branch. | |
| # ⚠️ Do not squash-merge! ⚠️ | |
| Make sure to merge this creating a merge commit." | |
| gh pr create --base prod --head main --title "chore: update prod from main" --body "$body" | |
| fi |