diff --git a/workflow-templates/cat-thanker.properties.json b/workflow-templates/cat-thanker.properties.json new file mode 100644 index 0000000..a9985cb --- /dev/null +++ b/workflow-templates/cat-thanker.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Cat thanker", + "description": "Posts a thank you message and a cat when a PR is merged.", + "iconName": "cat", + "categories": [] +} diff --git a/workflow-templates/cat-thanker.yaml b/workflow-templates/cat-thanker.yaml new file mode 100644 index 0000000..8b3cbf6 --- /dev/null +++ b/workflow-templates/cat-thanker.yaml @@ -0,0 +1,23 @@ +name: Merge cat + +on: + pull_request: + branches: + - main + types: [closed] + +jobs: + thanks: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + steps: + - name: comment PR + uses: unsplash/comment-on-pr@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + msg: | + Thanks for the contribution, @${{ github.event.pull_request.user.login }}! + + ![cat](https://cdn.discordapp.com/emojis/802947464230731807.gif?v=1) + check_for_duplicate_msg: true diff --git a/workflow-templates/cat.png b/workflow-templates/cat.png new file mode 100644 index 0000000..43ba5d4 Binary files /dev/null and b/workflow-templates/cat.png differ