Revert "Add .github/workflows/check-based-on-master (#1991)"

This reverts commit 06cf4e0f70.

This break merge requests to non-master branches - see https://github.com/VictoriaMetrics/VictoriaMetrics/pull/1993#issuecomment-999403963
This commit is contained in:
Aliaksandr Valialkin 2021-12-22 11:18:11 +02:00
parent 06cf4e0f70
commit 0f97c34204
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1
2 changed files with 0 additions and 30 deletions

View file

@ -1,12 +0,0 @@
#!/usr/bin/env bash
set -x -e
MASTER_ID=$(git rev-parse "origin/master")
CURRENT_ID=$(git rev-parse "HEAD")
BASED_ON_ID=$(git merge-base "$CURRENT_ID" "$MASTER_ID")
if [[ "$MASTER_ID" != "$BASED_ON_ID" ]]
then
echo "Current branch is based on $BASED_ON_ID, which is not the latest \`master\`: $MASTER_ID. Consider \`git rebase origin/master\`."
exit 1
fi

View file

@ -1,18 +0,0 @@
name: check-based-on-master
on:
pull_request:
push:
branches: [ master ]
jobs:
hook:
name: Check whether this branch is based on master branch
runs-on: ubuntu-latest
steps:
- name: Check out repo @ current branch
uses: actions/checkout@v2
with:
fetch-depth: 1000 # Hopefully current branch is less than 1000 commits from main
- name: Fetch origin/master
run: "git fetch origin master"
- name: Run check-based-on-master
run: .github/workflows/check-based-on-master.sh