forked from ChaoticOnyx/OnyxBay
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.44 KB
/
additional_checks.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: Additional Checks
on: [push, pull_request]
jobs:
Checks:
runs-on: ubuntu-latest
if: github.repository == 'ChaoticOnyx/OnyxBay' && github.event.pull_request.draft == false
env:
BYOND_MAJOR: 514
BYOND_MINOR: 1583
DM_BUILDFILE: "baystation12.dme"
steps:
- name: Checkout
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
with:
persist-credentials: true
fetch-depth: 25
- name: Install Byond
run: |
chmod +x ./install-byond.sh
./install-byond.sh
- name: Steps Check
run: |
shopt -s globstar
(! grep 'step_[xy]' maps/**/*.dmm)
(! grep '\bnew/' **/*.dm)
(! grep -E '^/\S+\([^)]*\bvar/' **/*.dm)
- name: Include Maps
shell: pwsh
run: ./scripts/IncludeMaps.ps1
- name: Build
run: |
source $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin/byondsetup
bash dm.sh ${DM_BUILDFILE}
- uses: actions/setup-ruby@v1
- name: Send Webhook
if: always()
env:
JOB_STATUS: ${{ job.status }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
HOOK_OS_NAME: ${{ runner.os }}
WORKFLOW_NAME: ${{ github.workflow }}
run: |
git clone https://github.com/DiscordHooks/github-actions-discord-webhook.git webhook
bash webhook/send.sh $JOB_STATUS $WEBHOOK_URL
shell: bash