Skip to content

Commit 2a76f9e

Browse files
authored
Merge pull request #43 from resizes/feat/added-renovate-action
fix: added message to discord
2 parents 4db7181 + f0cdcc6 commit 2a76f9e

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/renovate.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,17 @@ jobs:
4949
blog
5050
secrets:
5151
github_app_private_key: ${{ secrets.RENOVATE_APP_PRIVATE_KEY }}
52-
53-
# show_pr_count:
54-
# needs: renovate
55-
# runs-on: ubuntu-latest
56-
# steps:
57-
# - name: Show PR count
58-
# run: echo "Renovate PR count: ${{ needs.renovate.outputs.pr_count }}"
59-
52+
53+
send_to_dc:
54+
needs: renovate
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Send Discord message if PRs exist
58+
if: ${{ needs.renovate.outputs.pr_count != '0' }}
59+
uses: ./path-to-your-actions/post-discord-message
60+
with:
61+
discord_channel_id: ${{ secrets.RENOVATE_UPDATE_DISCORD_CHANNEL_ID }}
62+
discord_bot_token: ${{ secrets.RENOVATE_APP_BOT_DISCORD_TOKEN }}
63+
message_content: |
64+
Renovate opened ${{ needs.renovate.outputs.pr_count }} PR(s) for ${{ github.repository }}!
65+
${{ needs.renovate.outputs.pr_list }}

0 commit comments

Comments
 (0)