mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Ignore submodule updates on engine version (#44533)
Listen the error annoyed me okay.
This commit is contained in:
parent
fd55f93929
commit
585d64ad8d
1 changed files with 19 additions and 2 deletions
21
.github/workflows/no-submodule-update.yml
vendored
21
.github/workflows/no-submodule-update.yml
vendored
|
|
@ -10,5 +10,22 @@ jobs:
|
|||
name: Submodule update in pr found
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Fail
|
||||
run: exit 1
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check changed files
|
||||
shell: pwsh
|
||||
run: |
|
||||
$changedFiles = @(git diff --name-only "${{ github.event.pull_request.base.sha }}" "${{ github.event.pull_request.head.sha }}")
|
||||
|
||||
if ($changedFiles.Count -eq 1 -and $changedFiles[0] -eq "RobustToolbox") {
|
||||
Write-Host "Only RobustToolbox was changed; allowing standalone submodule update."
|
||||
exit 0
|
||||
}
|
||||
|
||||
Write-Host "RobustToolbox was updated alongside other files:"
|
||||
foreach ($file in $changedFiles) {
|
||||
Write-Host " - $file"
|
||||
}
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue