Skip to content

Check branch is rebased #105

Check branch is rebased

Check branch is rebased #105

Workflow file for this run

name: Check branch is rebased
on:
merge_group:
pull_request:
branches:
- main
workflow_run:
workflows: [Push in main]
#types:
# - completed
#branches:
# - main
jobs:
check-rebased:
runs-on: ubuntu-latest
if: github.event_name != 'merge_group'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: check rebased
run: |
git fetch origin
git checkout main
git merge origin/${{ github.head_ref }} --ff-only