From 0a11528a0074212c43946a13e619d3f26631bbb6 Mon Sep 17 00:00:00 2001 From: Jeevitha Kannan K S Date: Sat, 15 Feb 2025 11:07:54 +0530 Subject: [PATCH] fix: pr remote rejection due to name restriction Found this https://github.com/orgs/community/discussions/61107#discussioncomment-6591355 --- .github/workflows/preview.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index fab21d66..a60ecd22 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -54,6 +54,7 @@ jobs: mkdir -p build mv linutil build/linutil echo "${{ github.workspace }}/build" >> $GITHUB_PATH + echo "branch_name=${{ env.tag_name }}" | tr . - >> $GITHUB_ENV - name: Generate preview uses: charmbracelet/vhs-action@v2.1.0 @@ -67,11 +68,11 @@ jobs: uses: peter-evans/create-pull-request@v7.0.5 with: commit-message: Preview for ${{ env.tag_name }} - branch: feature/preview-${{ env.tag_name }} + branch: preview-${{ env.branch_name }} title: "Update preview for ${{ env.tag_name }}" labels: | documentation body: | Automated PR to update preview gif for version ${{ env.tag_name }} - ![preview](https://raw.githubusercontent.com/${{ github.repository }}/feature/preview-${{ env.tag_name }}/.github/preview.gif) + ![preview](https://raw.githubusercontent.com/${{ github.repository }}/preview-${{ env.branch_name }}/.github/preview.gif) if: success()