name: Update Base Branch

on:
  pull_request:
    types: [ opened ]

jobs:
  update:
    if: ${{ github.event.label.name == 'update-base' }}
    runs-on: ubuntu-22.04
    steps:
      - uses: FabricMC/fabric-action-scripts@v2
        with:
          context: yarn-version-label