Skip to content

Update Dockerfile

Update Dockerfile #647

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: "<@&1153326597844238366>"
webhook: ${{ secrets.DISCORD_WEBHOOK }}
color: FFFFFF
image: ${{ steps.random_image_url.outputs.image_url }}