Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Update README.md

Update README.md #3

Workflow file for this run

name: Event
on:
pull_request_target:
types: [opened]
issues:
types: [opened]
jobs:
send:
name: Open Thread on Discord
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rokit
uses: CompeyDev/[email protected]
- name: Send webhook
env:
WEBHOOK_URL: ${{ secrets.EVENT_WEBHOOK_URL }}
run: |
PROJECT="${{ github.repository }}"
if [ "${{ github.event_name }}" == "issues" ]; then
EVENT_URL="${{ github.event.issue.html_url }}"
EVENT_TITLE="${{ github.event.issue.title }}"
elif [ "${{ github.event_name }}" == "pull_request" ]; then
EVENT_URL="${{ github.event.pull_request.html_url }}"
EVENT_TITLE="${{ github.event.pull_request.title }}"
fi
lune run .lune/discord.luau "$WEBHOOK_URL" "event" "$PROJECT" "$EVENT_TITLE" "$EVENT_URL"