Merge for 1.12.0-rc.1 #84
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
| # Ensures all .osm template files bundled in src/openstudio_app/Resources/ have been | |
| # version-translated to the current OpenStudio SDK version before a PR merges to master. | |
| # Runs developer/ruby/CheckOSMVersions.rb which verifies each file's OS:Version object. | |
| # | |
| # On failure: run the export_standards_data workflow to regenerate the OSM files, or run | |
| # developer/ruby/UpdateOSMVersions.rb locally and commit the result. | |
| name: Check OSM Versions | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| osm-versions: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.2 | |
| - name: Verify that OSMs have been updated | |
| shell: bash | |
| run: | | |
| ruby ./developer/ruby/CheckOSMVersions.rb | |
| - name: Suggest correcting steps | |
| if: ${{ failure() }} | |
| shell: bash | |
| run: | | |
| echo "There is a workflow called export_standards_data that you should run first (it's a manual workflow_dispatch workflow)" | |
| echo "or run it locally via 'cd developer/ruby && openstudio export_openstudio_standards_libraries.rb'" | |
| echo "" | |
| echo "Then you should use 'openstudio developer/ruby/UpdateOSMVersions.rb' to version translate the rest of the OSM files." |