From 6961ef369dc09144b45996162782d03fe493f7ea Mon Sep 17 00:00:00 2001 From: Jakob Fritz Date: Tue, 16 Apr 2024 16:31:51 +0900 Subject: [PATCH] Reverted and changed way to store variable --- .github/workflows/gitlab_ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gitlab_ci.yml b/.github/workflows/gitlab_ci.yml index 227c813d5f..f6a68e4053 100644 --- a/.github/workflows/gitlab_ci.yml +++ b/.github/workflows/gitlab_ci.yml @@ -90,9 +90,9 @@ jobs: echo "Git pull" git pull echo "New branch shall be named: TEMPORARY_MERGE_PR_${{ github.event.number }}" - echo "MIRROR_BRANCH=TEMPORARY_MERGE_PR_${{ github.event.number }}" >> "$GITHUB_ENV" - echo "Create new branch ${{ MIRROR_BRANCH }} and check it out" - git checkout -b "${{ MIRROR_BRANCH }}" + echo "MIRROR_BRANCH=TEMPORARY_MERGE_PR_$github.event.number" >> $GITHUB_ENV + echo "Create new branch ${{ env.MIRROR_BRANCH }} and check it out" + git checkout -b "${{ env.MIRROR_BRANCH }}" git merge --ff-only "${{ github.event.pull_request.head.sha }}" - name: Mirror and wait for Gitlab-CI uses: jakob-fritz/github2lab_action@Iss37_variable_for_checkout @@ -103,4 +103,4 @@ jobs: GITLAB_HOSTNAME: "gitlab.jsc.fz-juelich.de" GITLAB_PROJECT_ID: "6029" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - MIRROR_BRANCH: ${{ MIRROR_BRANCH }} + MIRROR_BRANCH: ${{ env.MIRROR_BRANCH }}