Add Apply to Selected to Facility Shading tab Construction and Schedule columns #1261
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
| # Enforces .clang-format style on all C/C++ files changed in a PR. | |
| # Runs ci/clang-format.sh which diffs HEAD against the base branch, formats only | |
| # changed files, and exits 1 if any changes were needed. | |
| # On failure: download the clang_format.patch artifact and apply with 'git apply clang_format.patch'. | |
| # Install ci/pre-commit.sh as a git pre-commit hook to catch violations locally. | |
| name: Clang Format | |
| on: | |
| pull_request: | |
| branches: [ master, develop ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Run clang-format against C++ files touched by the PR | |
| shell: bash | |
| run: | | |
| echo "GITHUB_REF=$GITHUB_REF GITHUB_BASE_REF=$GITHUB_BASE_REF GITHUB_HEAD_REF=$GITHUB_HEAD_REF" | |
| git fetch --all | |
| echo "Using clang-format: $(clang-format --version)" | |
| ./ci/clang-format.sh HEAD remotes/origin/$GITHUB_BASE_REF | |
| - name: Upload clang-format patch as artifact | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: OpenStudioApplication-${{ github.sha }}-clang_format.patch | |
| path: clang_format.patch |