File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments