forked from withastro/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 878 Bytes
/
discord-i18n-ping.yml
File metadata and controls
31 lines (26 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Translation Tuesday
on:
schedule:
- cron: '0 10 * * TUE'
workflow_dispatch:
jobs:
translation:
name: translation_tuesday
if: ${{ github.repository_owner == 'withastro' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Install Tools & Dependencies
uses: ./.github/actions/install
- id: message
name: Format Discord message
run: node --experimental-transform-types ./scripts/tuesday-bot.ts
- name: Send a Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_I18N }}
uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "${{ steps.message.outputs.DISCORD_MESSAGE }}"