-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (41 loc) · 1.54 KB
/
pull_request.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
---
name: Pull Request
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v2
- uses: actions/setup-ruby@v1
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Run Luacheck
uses: nebularg/actions-luacheck@v1
with:
args: --no-color -q
files: $(git ls-files '*.lua' ':!:totalRP3/Libs/Ellyb/Libraries/*' ':!:totalRP3/Libs/MSA-DropDownMenu-1.0/*' ':!:totalRP3/Libs/TaintLess/*' ':!:totalRP3/Locales/????.lua')
annotate: warning
- name: Run editorconfig-checker
uses: wow-rp-addons/[email protected]
with:
args: -no-color
files: $(git ls-files '*.lua' '*.sh' '*.xml' ':!:totalRP3/Libs/Ellyb/Libraries/*' ':!:totalRP3/Libs/MSA-DropDownMenu-1.0/*' ':!:totalRP3/Libs/TaintLess/*' ':!:totalRP3/Locales/*.lua')
- name: Create Package
uses: BigWigsMods/packager@v2
with:
args: -d -S -z
- uses: actions/upload-artifact@v2
with:
name: totalRP3-PR-${{ github.event.number }}
path: .release/
- 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 }}