mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
ci: do not check --ff-only
on master branch
This commit is contained in:
parent
779e4295ad
commit
dcc1ff37bc
4
.github/workflows/merge-check.yml
vendored
4
.github/workflows/merge-check.yml
vendored
@ -25,6 +25,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Check merge --ff-only
|
- name: Check merge --ff-only
|
||||||
run: |
|
run: |
|
||||||
|
if [[ "${{ github.ref_name }}" == "master" ]]; then
|
||||||
|
echo "Already on master, no need to check --ff-only"
|
||||||
|
else
|
||||||
git fetch origin master:master
|
git fetch origin master:master
|
||||||
if [[ "${{ github.event_name }}" == "pull_request"* ]]; then
|
if [[ "${{ github.event_name }}" == "pull_request"* ]]; then
|
||||||
git fetch origin ${{ github.event.pull_request.base.ref }}:base_branch
|
git fetch origin ${{ github.event.pull_request.base.ref }}:base_branch
|
||||||
@ -36,6 +39,7 @@ jobs:
|
|||||||
git checkout master
|
git checkout master
|
||||||
git merge --ff-only ${{ github.sha }}
|
git merge --ff-only ${{ github.sha }}
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
- name: add labels
|
- name: add labels
|
||||||
uses: actions-ecosystem/action-add-labels@v1
|
uses: actions-ecosystem/action-add-labels@v1
|
||||||
|
Loading…
Reference in New Issue
Block a user