From 27a00ca506e1492c52e7bca26509fb1db4c898b6 Mon Sep 17 00:00:00 2001 From: JEEVITHA KANNAN K S Date: Sat, 2 Nov 2024 18:07:28 +0530 Subject: [PATCH 1/2] fix: binary download, invalid action inputs --- .github/workflows/preview.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 4967eeef..11a7ce01 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -34,15 +34,14 @@ jobs: repo: context.repo.repo, per_page: 1 }); - core.setOutput('result', releases.data[0].tag_name); - result-encoding: string + return releases.data[0].tag_name; - name: Set tag name ( Workflow Run ) if: github.event_name == 'workflow_run' run: echo "tag_name=${{ steps.latest_tag.outputs.result }}" >> $GITHUB_ENV - name: Set tag name ( Workflow Dispatch ) - if: ${{ github.event_name }} == 'workflow_dispatch' + if: github.event_name == 'workflow_dispatch' run: echo "tag_name=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV - name: Download binary @@ -68,11 +67,10 @@ jobs: uses: peter-evans/create-pull-request@v7.0.5 with: commit-message: Preview for ${{ env.tag_name }} - file-pattern: "docs/assets/preview.gif" - add-options: "--force" token: ${{ secrets.PAT_TOKEN }} branch: feature/preview-${{ env.tag_name }} title: "Update preview for ${{ env.tag_name }}" body: | Automated PR to update preview gif for version ${{ env.tag_name }} + ![preview](https://raw.githubusercontent.com/${{ github.repository }}/feature/preview-${{ env.tag_name }}/docs/assets/preview.gif) if: success() From 46329c4077014f05dd9016ad687bf3765b53c9d3 Mon Sep 17 00:00:00 2001 From: Jeevitha Kannan K S Date: Sat, 9 Nov 2024 09:14:15 +0530 Subject: [PATCH 2/2] Update preview.yml --- .github/workflows/preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index a2472069..d879346f 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -72,5 +72,5 @@ jobs: title: "Update preview for ${{ env.tag_name }}" body: | Automated PR to update preview gif for version ${{ env.tag_name }} - ![preview](https://raw.githubusercontent.com/${{ github.repository }}/feature/preview-${{ env.tag_name }}/docs/assets/preview.gif) + ![preview](https://raw.githubusercontent.com/${{ github.repository }}/feature/preview-${{ env.tag_name }}/.github/preview.gif) if: success()