Inertia-2: remove unneeded hand calcs that don't render #5
Workflow file for this run
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: Check Sync with Master | |
on: | |
pull_request: | |
types: [synchronize, opened, reopened] | |
push: | |
branches: | |
- master | |
jobs: | |
check-sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
fetch-depth: 0 # Fetch all history for all branches and tags | |
- name: Fetch main branch | |
run: | | |
git fetch origin master | |
- name: Check if branch is up-to-date with master | |
run: | | |
git merge-base --is-ancestor origin/master HEAD | |
- name: Fail if not up-to-date | |
if: failure() | |
run: | | |
echo "The branch is not up-to-date with main. Please rebase or merge main into your branch." | |
exit 1 |