mirror of
https://github.com/MonsterDruide1/OdysseyDecomp.git
synced 2024-11-23 05:19:52 +00:00
CI: allow PRs to access binary for checking
This commit is contained in:
parent
69d81ebd91
commit
8b967a1b38
14
.github/workflows/compile-check.yml
vendored
14
.github/workflows/compile-check.yml
vendored
@ -1,5 +1,11 @@
|
||||
name: Compile and verify functions
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
pull_request_target:
|
||||
types: [opened, synchronize]
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
|
||||
jobs:
|
||||
compile_verify:
|
||||
@ -9,6 +15,12 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Check out branch if in PR
|
||||
if: ${{ github.event_name == 'pull_request_target' }}
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
submodules: recursive
|
||||
- name: Check for W-state functions
|
||||
run: |
|
||||
if grep -q ",W," "data/odyssey_functions.csv"; then
|
||||
|
Loading…
Reference in New Issue
Block a user