-
Notifications
You must be signed in to change notification settings - Fork 18
54 lines (48 loc) · 1.55 KB
/
update_translations.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
name: Process CurseForge Translations
on:
push:
branches:
- main
schedule:
- cron: '0 18 * * *'
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install Python dependencies
run: pip install -r .github/scripts/requirements.txt
- name: Upload CurseForge Translations
run: make translations/upload
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
- name: Download CurseForge Translations
run: make translations/download
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: Import CurseForge Localization
branch: actions/import-cf-localization
delete-branch: true
title: Import CurseForge Localization
body: Automated import of CurseForge localization.
author: GitHub <[email protected]>
reviewers: Meorawr, Solanya
- name: Send Webhook Notification
if: failure()
run: |
git clone https://github.com/DiscordHooks/github-actions-discord-webhook.git webhook
bash webhook/send.sh $JOB_STATUS $WEBHOOK_URL
env:
JOB_STATUS: ${{ job.status }}
HOOK_OS_NAME: ${{ runner.os }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
WORKFLOW_NAME: ${{ github.workflow }}