Skip to content

Commit

Permalink
github: keep branch name for regualr push events
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Oct 9, 2024
1 parent e697949 commit 703e5e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
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/gitlab-mirror-and-ci-action@0.6
with:
Expand Down

0 comments on commit 703e5e0

Please sign in to comment.