Skip to content

Commit

Permalink
Changed way to use variables (set locally and later in github_env)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-fritz committed Apr 17, 2024
1 parent 6961ef3 commit 9cfeea3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gitlab_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ jobs:
git checkout "${{ github.base_ref }}"
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 ${{ env.MIRROR_BRANCH }} and check it out"
git checkout -b "${{ env.MIRROR_BRANCH }}"
MIRROR_BRANCH="TEMPORARY_MERGE_PR_${{ github.event.number }}"
echo MIRROR_BRANCH="$MIRROR_BRANCH" >> $GITHUB_ENV
echo "Create new branch $MIRROR_BRANCH and check it out"
git checkout -b "$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
Expand Down

0 comments on commit 9cfeea3

Please sign in to comment.