-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
31 lines (26 loc) · 895 Bytes
/
Copy pathdiscord-i18n-ping.yml
File metadata and controls
31 lines (26 loc) · 895 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Install Tools & Dependencies
uses: ./.github/actions/install
- id: message
name: Format Discord message
run: pnpm tsm --require=./scripts/lib/filter-warnings.cjs ./scripts/tuesday-bot.ts
- name: Send a Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_I18N }}
uses: Ilshidur/action-discord@0c4b27844ba47cb1c7bee539c8eead5284ce9fa9 # 0.3.2
with:
args: "${{ steps.message.outputs.DISCORD_MESSAGE }}"