From 808ef913e537d831ea1211095c2151665ae7748b Mon Sep 17 00:00:00 2001 From: JEEVITHA KANNAN K S Date: Sat, 2 Nov 2024 00:15:39 +0530 Subject: [PATCH] refact: use tags instead of runner id (#900) Co-authored-by: Chris Titus --- .github/workflows/preview.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index e79fbdfe..6b5d8ee1 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -16,7 +16,6 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - pull-requests: write steps: - name: Checkout source @@ -66,12 +65,7 @@ jobs: - name: Create PR uses: peter-evans/create-pull-request@v7.0.5 with: - title: "release: Preview for ${{ env.tag_name }}" - commit-message: "release: Preview for ${{ env.tag_name }}" - branch: "preview-${{ env.tag_name }}" - delete-branch: true - labels: "documentation" - body: | - ## Preview for ${{ env.tag_name }} - - Tag: [${{ env.tag_name }}](https://github.com/${{ github.repository }}/tree/${{ env.tag_name }}) - - Preview: ![Preview](https://raw.githubusercontent.com/${{ github.repository }}/preview-${{ env.tag_name }}/docs/assets/preview.gif) + commit_message: Preview for ${{ env.tag_name }} + file_pattern: "docs/assets/preview.gif" + add_options: "--force" + if: success()