Skip to content

Commit

Permalink
Update discord webhook.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBunnyDc committed Sep 23, 2024
1 parent 1f69915 commit 12b1c09
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build_prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build PRs

on: [pull_request, push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch_depth: 1000
fetch_tags: true

- name: Create branch for commit
if: github.event_name == 'pull_request' # Ensures this only runs for PR events
run:
git switch -C pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.ref }}

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false

- name: Notify On Discord
uses: wonejomb/webhook-actions@discord-webhook
with:
webhook_url: ${{secrets.webhook_url}}
webhook_name: 'WuidebookAPI - Github'
webhook_logo: 'https://media.discordapp.net/attachments/1259725258949267508/1287642276109221908/logo.png?ex=66f249d1&is=66f0f851&hm=7046affb16e8fa7ebf424814664a9ab47b9b3b0973bd534616e4f9349a06362b&=&format=webp&quality=lossless&width=640&height=640'
webhook_embed_color: 0x9a153f

0 comments on commit 12b1c09

Please sign in to comment.