Add per-weapon VXL turret switching for MultiWeapon units #10887
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pull Request Check | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - labeled | |
| - unlabeled | |
| env: | |
| BASE_BRANCH: ${{ github.event.pull_request.base.ref }} | |
| jobs: | |
| Changelog-Check: | |
| name: Changelog Mention | |
| # If the Skip Changelog label is set, then workflow will not be executed | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check that Changelog has been updated | |
| run: | | |
| # Check that Changelog has been updated | |
| if (git diff --name-only $(git merge-base origin/$BASE_BRANCH HEAD) | grep ^docs/Whats-New.md$) | |
| then | |
| echo "Thank you for remembering to update the Changelog! 😋" | |
| exit 0 | |
| else | |
| echo "It looks like you forgot to update the Changelog! 🧐" | |
| echo "Please, mention your changes in 'docs/Whats-New.md' or ask a maintainer to apply the Skip Changelog label for your Pull Request." | |
| exit 1 | |
| fi | |
| Credits-Check: | |
| name: Credits List Mention | |
| # If the Skip Credits label is set, then workflow will not be executed | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Credits') }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check that Credits List has been updated | |
| run: | | |
| # Check that Credits List has been updated | |
| if (git diff --name-only $(git merge-base origin/$BASE_BRANCH HEAD) | grep ^CREDITS.md$) | |
| then | |
| echo "Thank you for remembering to update the Credits List! 😋" | |
| exit 0 | |
| else | |
| echo "It looks like you forgot to update the Credits List! 🧐" | |
| echo "Please, mention your contribution in 'CREDITS.md' or ask a maintainer to apply the Skip Credits label for your Pull Request." | |
| exit 1 | |
| fi | |
| Documentation-Check: | |
| name: Documentation for Changes | |
| # If the Skip Docs label is set, then workflow will not be executed | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Docs') }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check that Documentation has been updated | |
| run: | | |
| # Check that Documentation has been updated | |
| if (git diff --name-only $(git merge-base origin/$BASE_BRANCH HEAD) | \ | |
| grep \ | |
| -e ^docs/New-or-Enhanced-Logics.md$ \ | |
| -e ^docs/Fixed-or-Improved-Logics.md$ \ | |
| -e ^docs/AI-Scripting-and-Mapping.md$ \ | |
| -e ^docs/User-Interface.md$ \ | |
| -e ^docs/Interoperability.md$ \ | |
| -e ^docs/Miscellanous.md$ \ | |
| ) | |
| then | |
| echo "Thank you for remembering to add your changes to the docs! 😋" | |
| exit 0 | |
| else | |
| echo "It looks like you forgot to add your changes to the docs! 🧐" | |
| echo "Please, document your changes or ask a maintainer to apply the Skip Docs label for your Pull Request." | |
| exit 1 | |
| fi | |
| Interop-Version-Check: | |
| name: Interop API Version Updated | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check that Interop API version is updated | |
| run: | | |
| # Check if any files in src/Interop/ were modified (excluding Version.h itself for initial checks) | |
| CHANGED_FILES=$(git diff --name-only $(git merge-base origin/$BASE_BRANCH HEAD)) | |
| INTEROP_MODIFIED=$(echo "$CHANGED_FILES" | grep -E "^src/Interop/.*\.(h|cpp)$" | grep -v "^src/Interop/Version\." || true) | |
| if [ -z "$INTEROP_MODIFIED" ]; then | |
| echo "No Interop files modified. Skipping version check." | |
| exit 0 | |
| fi | |
| # If Interop files were modified, check if Version.h was also modified | |
| if echo "$CHANGED_FILES" | grep -q "^src/Interop/Version\.h$"; then | |
| echo "Thank you for updating the Interop API version! 😋" | |
| exit 0 | |
| else | |
| echo "You modified Interop API but forgot to update the version! 🧐" | |
| echo "Please update the version constants in 'src/Interop/Version.h' according to Semantic Versioning." | |
| echo "See .github/copilot-instructions.md for version bumping guidelines." | |
| exit 1 | |
| fi |