From 7b581e7ef7332efc2e423ec63e02ebf77baa7874 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 24 Mar 2023 13:57:43 +0800 Subject: [PATCH] chore: Delete issues-similarity-analysis and memer-action (#41431) * Delete issues-similarity-analysis.yml * Create meme-greetings --- .../workflows/issues-similarity-analysis.yml | 22 ------------ .github/workflows/meme-greetings | 36 +++++++++++++++++++ 2 files changed, 36 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/issues-similarity-analysis.yml create mode 100644 .github/workflows/meme-greetings diff --git a/.github/workflows/issues-similarity-analysis.yml b/.github/workflows/issues-similarity-analysis.yml deleted file mode 100644 index 4da16e7f2f..0000000000 --- a/.github/workflows/issues-similarity-analysis.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Issues Similarity Analysis - -on: - issues: - types: [opened, edited] - -permissions: - contents: read - -jobs: - similarity-analysis: - permissions: - issues: write # for actions-cool/issues-similarity-analysis to create issue comments - runs-on: ubuntu-latest - steps: - - name: analysis - uses: actions-cool/issues-similarity-analysis@v1 - with: - filter-threshold: 0.5 - title-excludes: '' - comment-title: '### You may look for issues:' - comment-body: '${index}. ${similarity} #${number}' diff --git a/.github/workflows/meme-greetings b/.github/workflows/meme-greetings new file mode 100644 index 0000000000..873b3482e8 --- /dev/null +++ b/.github/workflows/meme-greetings @@ -0,0 +1,36 @@ +name: Memer Workflow + +on: [pull_request] + +jobs: + greeting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Run Memer Action + id: memer + + uses: Bhupesh-V/memer-action@master + with: + filter: "new" + + - name: Check Outputs + run: | + echo "${{ steps.memer.outputs.meme }}" + echo "${{ steps.memer.outputs.title }}" + echo "${{ steps.memer.outputs.source }}" + + - name: Create comment + uses: peter-evans/create-or-update-comment@v1.3.0 + id: couc + with: + issue-number: ${{ github.event.number }} + body: | + 🎉🎉 Thanks for opening this PR 🤗 + Please wait while the maintainer(s) review it + + Meanwhile have a look at this 😝 : + + > **${{ steps.memer.outputs.title }}** + ![meme](${{ steps.memer.outputs.meme }}) + ℹī¸ Source [ Powered By đŸ”Ĩ Memer Action ]