diff --git a/.github/workflows/dev-preview.yml b/.github/workflows/dev-preview.yml index f28ed9ca..26459cdf 100644 --- a/.github/workflows/dev-preview.yml +++ b/.github/workflows/dev-preview.yml @@ -58,7 +58,10 @@ jobs: - name: Get Branch Name id: getBranchName - run: echo "branch_name=$(git branch --contains ${{ steps.getRef.outputs.pr_ref }} | awk 'NR==1' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')" >> "$GITHUB_OUTPUT" + run: echo "branch_name=$(gh pr view $PR_NUMBER --repo ${{ github.repository }} --json headRefName | jq -r '.headRefName')" >> $GITHUB_OUTPUT + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_NUMBER: ${{ github.event.issue.number }} - name: Login to GitHub Container Registry uses: docker/login-action@v3 @@ -66,6 +69,7 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + # Docker build setup - name: Set up QEMU uses: docker/setup-qemu-action@v3