Port ControllerDifferentialIK into newton.controllers module
#12006
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: License Check | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| on: | |
| merge_group: | |
| pull_request: | |
| branches: | |
| - main | |
| - "release-*" | |
| # Cancels in-progress runs of this workflow for the same pull request, | |
| # but allows parallel runs for pushes to the main branch. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-licenses: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 | |
| github.com:443 | |
| proxy.golang.org:443 | |
| release-assets.githubusercontent.com:443 | |
| - name: Checkout repository | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Check code license headers (Apache-2.0) | |
| uses: apache/skywalking-eyes/header@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # v0.8.0 | |
| - name: Check docs license headers (CC-BY-4.0) | |
| uses: apache/skywalking-eyes/header@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # v0.8.0 | |
| with: | |
| config: .licenserc-docs.yaml | |
| - name: Check notebook license headers (CC-BY-4.0) | |
| run: | | |
| status=0 | |
| for nb in $(find docs -name '*.ipynb' -not -path '*/.*' -not -path '*/_build/*'); do | |
| if ! grep -q 'SPDX-License-Identifier: CC-BY-4.0' "$nb"; then | |
| echo "ERROR: $nb missing CC-BY-4.0 SPDX header" | |
| status=1 | |
| fi | |
| done | |
| exit $status |