fix: pr remote rejection due to name restriction

Found this https://github.com/orgs/community/discussions/61107#discussioncomment-6591355
This commit is contained in:
Jeevitha Kannan K S 2025-02-15 11:07:54 +05:30 committed by GitHub
parent 232b45e6a6
commit 0a11528a00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,6 +54,7 @@ jobs:
mkdir -p build mkdir -p build
mv linutil build/linutil mv linutil build/linutil
echo "${{ github.workspace }}/build" >> $GITHUB_PATH echo "${{ github.workspace }}/build" >> $GITHUB_PATH
echo "branch_name=${{ env.tag_name }}" | tr . - >> $GITHUB_ENV
- name: Generate preview - name: Generate preview
uses: charmbracelet/vhs-action@v2.1.0 uses: charmbracelet/vhs-action@v2.1.0
@ -67,11 +68,11 @@ jobs:
uses: peter-evans/create-pull-request@v7.0.5 uses: peter-evans/create-pull-request@v7.0.5
with: with:
commit-message: Preview for ${{ env.tag_name }} 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 }}" title: "Update preview for ${{ env.tag_name }}"
labels: | labels: |
documentation documentation
body: | body: |
Automated PR to update preview gif for version ${{ env.tag_name }} 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() if: success()