diff --git a/.github/mirror.sh b/.github/mirror.sh index f7a407601f3..397a8a379af 100755 --- a/.github/mirror.sh +++ b/.github/mirror.sh @@ -1,7 +1,5 @@ #!/usr/bin/env bash -BRANCH_NAME=${BRANCH_NAME##*/} - git remote add fork "git@github.com:${GITHUB_REPO}.git" git remote add gitlab "git@gitlab.com:ginkgo-project/ginkgo-public-ci.git" diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 0bc5b221938..43ebd4a2aae 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -15,5 +15,5 @@ jobs: run: cp --preserve .github/mirror.sh /tmp && /tmp/mirror.sh env: BOT_KEY: ${{ secrets.GITLAB_MIRROR_PRIV_KEY }} - BRANCH_NAME: ${{ github.ref }} + BRANCH_NAME: ${{ github.ref_name }} GITHUB_REPO: ${{ github.repository }}