Skip to content

Commit

Permalink
github: drop branch name manipulations
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Oct 9, 2024
1 parent 703e5e0 commit 43a6082
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ jobs:
with:
fetch-depth: 0

- name: Redefine branch on pull_request
if: github.event_name == 'pull_request'
run: |
echo "current_branch=$(echo ${{ github.head_ref }})" >> $GITHUB_ENV
- name: Redefine branch on push
if: github.event_name == 'push'
run: |
echo "current_branch=$(echo ${{ github.ref }} | sed -E 's|refs/[a-zA-Z]+/||')" >> $GITHUB_ENV
- name: Mirror + trigger CI
uses: SvanBoxel/[email protected]
with:
Expand All @@ -36,4 +26,3 @@ jobs:
GITLAB_PROJECT_ID: "21"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
POLL_TIMEOUT: 60
GITHUB_REF_NAME: ${{ env.current_branch }} # Overwrite the branch name for pull requests

0 comments on commit 43a6082

Please sign in to comment.