-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (35 loc) · 1021 Bytes
/
patch.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
name: patch
on:
workflow_dispatch:
schedule:
- cron: '*/20 * * * *'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Pull the latest version
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Patch
run: bash patcher.sh
env:
GIT_USER_NAME: ${{ secrets.GIT_USER_NAME }}
GIT_USER_EMAIL: ${{ secrets.GIT_USER_EMAIL }}
- name: Auto Packaging
if: env.RELEASE != ''
uses: BigWigsMods/packager@master
env:
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
- name: Upload to Github Actions
if: env.RELEASE != ''
uses: actions/upload-artifact@v4
with:
name: WeakAurasPatched
path: .release/*.zip
- name: Send a message to Discord if meets a failure
if: env.RELEASE != '' && failure()
uses: nebularg/actions-discord-webhook@v1
with:
webhook_url: ${{ secrets.WEBHOOK_URL }}
status: ${{ job.status }}