Skip to content

update(changelog): 7.11.2024 #10636

update(changelog): 7.11.2024

update(changelog): 7.11.2024 #10636

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: 515
BYOND_MINOR: 1620
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