fix(deps): update material-ui monorepo (major) #683
This file contains 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: Retarget PR | |
# Triggering the workflow on PR events of interest | |
on: | |
pull_request: | |
types: | |
- "opened" | |
- "synchronize" | |
- "reopened" | |
- "edited" | |
jobs: | |
# Retarget to stage branch if PR is opened against main branch directly | |
# Only allow targeting main if they are from stage and hotfix branches | |
retarget-pr: | |
name: Retarget PR | |
if: github.base_ref == 'main' && github.head_ref != 'stage' && github.head_ref != 'hotfix' | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Change PR target | |
- name: Change PR target | |
run: gh pr edit ${{ github.event.number }} --base stage | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |