FEAT :: [#319] 닉네임 입력 페이지 #181
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Discord Notification | |
on: | |
pull_request: | |
branches: [ "main", "develop" ] | |
jobs: | |
message: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Random Image URL | |
id: random_image_url | |
uses: actions/github-script@v3 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const urlList = [ | |
[`냥뇽녕냥`, `https://hedwig-cf.netmarble.com/forum-common/skrv/skr/0d36bc9f09dd4f46b5432f0065a77cb4_1664534062576.gif`], | |
[`냥뇽녕냥`, `https://hedwig-cf.netmarble.com/forum-common/sknightsmmo/sk2/6f483725827e4e6cbf16aeee0e8c8e3c_1617941581098.gif`], | |
[`냥뇽녕냥`, `https://upload3.inven.co.kr/upload/2022/04/21/bbs/i013997846192.gif`], | |
[`쵸단`, `https://media1.tenor.com/m/a1bfjuJj-j4AAAAd/chodan-qwer.gif`], | |
[`카리나`, `https://media1.tenor.com/m/JWGYQ2D9JfkAAAAC/karina-aespa.gif`], | |
[`투슬리스`, `https://media1.tenor.com/m/UTmEHkq-OJcAAAAC/dance-cas-van-de-pol.gif`], | |
[`봇치`, `https://media1.tenor.com/m/9wllMjsxqaAAAAAd/bocchi-the-rock-bocchi-the-rock-gif.gif`] | |
]; | |
let output = urlList[Math.floor(Math.random() * urlList.length)] | |
core.setOutput('name', output[0]); | |
core.setOutput('image_url', output[1]); | |
- name: Discord Webhook Action | |
uses: sarisia/actions-status-discord@v1 | |
if: ${{ ! startsWith(github.event.head_commit.message, '!!') }} | |
with: | |
title: 🔀 Pull Request 🔀 | |
description: "# 안녕하세요! ${{ steps.random_image_url.outputs.name }}입니다❤️" | |
content: "<@&1154312160575500298>" | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
color: FFFFFF | |
image: ${{ steps.random_image_url.outputs.image_url }} |