-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (30 loc) · 892 Bytes
/
syntax.yml
File metadata and controls
33 lines (30 loc) · 892 Bytes
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
name: syntax
on:
push:
paths:
- 'src/Ninja/G1CP/**/*.src'
- 'src/Ninja/G1CP/**/*.d'
check_run:
types: completed
permissions:
checks: write
actions: write
jobs:
parsiphae:
name: Run syntax check
if: github.event_name != 'check_run' || github.event.check_run.external_id == format('{0}-0', github.workflow)
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.BOTWYN_ID }}
private-key: ${{ secrets.BOTWYN_KEY }}
- uses: actions/checkout@v5
with:
token: ${{ steps.app-token.outputs.token }} # Make sure it is Botwyn who performs all actions
- name: Check syntax
uses: szapp/parsiphae-action@v1
with:
file: src/Ninja/G1CP/Content_G1.src
token: ${{ steps.app-token.outputs.token }}