Skip to content
Snippets Groups Projects
Commit 8a316e20 authored by Jakob Fritz's avatar Jakob Fritz
Browse files

Moved the check of condition from shell to yaml

parent d347bd32
Branches master
No related tags found
No related merge requests found
......@@ -82,15 +82,13 @@ jobs:
ref: "${{ env.USED_SHA }}"
persist-credentials: false
- name: check if fast-forward merge is possible
if: github.event_name == 'pull_request_target'
run: |
if [ "${{ github.event_name }}" == 'pull_request_target' ]
then
git checkout "${{ GITHUB_BASE_REF }}"
git checkout "${{ github.base_ref }}"
git pull
echo "MIRROR_BRANCH=TEMPORARY_MERGE_PR_${{ github.event.number }}" >> "$GITHUB_ENV"
git checkout -b "${{ github.env.MIRROR_BRANCH }}"
git merge --ff-only "${{ github.event.pull_request.head.sha }}"
fi
- name: Mirror and wait for Gitlab-CI
uses: jakob-fritz/github2lab_action@Iss37_variable_for_checkout
env:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment