fix(teleport): prevent recursive teleport loops #519
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: autofix.ci | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| paths: | |
| - "src/**" | |
| - "tests/**" | |
| - "data/**" | |
| - "data-canary/**" | |
| - "data-otservbr-global/**" | |
| - "cmake/**" | |
| - "docker/**" | |
| - "vcproj/**" | |
| - "vcpkg.json" | |
| - "CMakeLists.txt" | |
| - "CMakePresets.json" | |
| - ".github/workflows/**" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| format: | |
| if: github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run clang format lint | |
| uses: DoozyX/clang-format-lint-action@v0.17 | |
| with: | |
| source: "src tests" | |
| exclude: "src/protobuf" | |
| extensions: "cpp,hpp,h" | |
| clangFormatVersion: 17 | |
| inplace: true | |
| - name: Run StyLua | |
| uses: JohnnyMorganz/stylua-action@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| version: latest | |
| args: . | |
| - name: Run cmake-format | |
| run: | | |
| pip install cmakelang PyYAML | |
| find . -name "CMakeLists.txt" -o -name "*.cmake" | grep -v build/ | grep -v vcpkg_installed/ | xargs cmake-format -i | |
| - name: Apply formatting with autofix.ci | |
| uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a | |
| with: | |
| commit-message: "style: auto-formatting (clang/stylua/cmake)" |