Skip to content

Match weapon_017

Match weapon_017 #3982

Workflow file for this run

name: Linter
on:
push:
branches-ignore:
- master
pull_request_target:
workflow_dispatch:
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: Install requirements
run: sudo apt-get install clang-format
- name: Install python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install black
run: pip install black pyyaml mapfile-parser==2.1.4
- name: Clone main repo (PR)
if: github.event_name == 'pull_request_target'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
submodules: false
- name: Clone main repo
if: github.event_name != 'pull_request_target'
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
submodules: false
- name: Format code
run: make format
- name: Check for pending changes
run: git diff --exit-code