Skip to content

Commit

Permalink
fix(pie-monorepo): DSW-000 use env var for branch name in workflow (#…
Browse files Browse the repository at this point in the history
…2059)

fix(pie-monorepo): dsw-000 use env var for branch name
  • Loading branch information
fernandofranca authored Nov 13, 2024
1 parent 64933d9 commit 669e7c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/labeler-get-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ jobs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Fetch branches # This is necessary for comparing the current branch changes against main
env:
BRANCH_NAME: ${{github.head_ref}}
run: |
git fetch origin main:main
git fetch origin ${{ github.head_ref }}:refs/remotes/origin/${{ github.head_ref }}
git checkout -b ${{ github.head_ref }} origin/${{ github.head_ref }}
git fetch origin "$BRANCH_NAME":refs/remotes/origin/"$BRANCH_NAME"
git checkout -b "$BRANCH_NAME" origin/"$BRANCH_NAME"
- name: Get Missing Labels
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
Expand Down

0 comments on commit 669e7c0

Please sign in to comment.