Skip to content

Commit

Permalink
ci[mirror]: improve branch name detection
Browse files Browse the repository at this point in the history
  • Loading branch information
tcojean committed Jun 7, 2024
1 parent df76098 commit 45fd749
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/mirror.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env bash

BRANCH_NAME=${BRANCH_NAME##*/}

git remote add fork "[email protected]:${GITHUB_REPO}.git"
git remote add gitlab "[email protected]:ginkgo-project/ginkgo-public-ci.git"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 45fd749

Please sign in to comment.