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