Fix bug in create-dev-char-symlinks command #1
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
| # Copyright 2025 NVIDIA CORPORATION | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| name: Cherry-Pick | |
| on: | |
| issue_comment: | |
| types: [created] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| backport: | |
| name: Backport PR | |
| runs-on: ubuntu-latest | |
| # Run on /cherry-pick comments on PRs | |
| if: | | |
| github.event.issue.pull_request && startsWith(github.event.comment.body, '/cherry-pick') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract target branches from PR comments | |
| id: extract-branches | |
| uses: actions/github-script@v8 | |
| with: | |
| script: | | |
| const run = require('./.github/scripts/extract-branches.js'); | |
| return await run({ github, context, core }); | |
| - name: Configure git | |
| if: steps.extract-branches.outputs.result != '[]' | |
| run: | | |
| git config user.name "nvidia-backport-bot" | |
| git config user.email "[email protected]" | |
| - name: Backport to release branches | |
| id: backport | |
| if: steps.extract-branches.outputs.result != '[]' | |
| uses: actions/github-script@v8 | |
| env: | |
| BRANCHES_JSON: ${{ steps.extract-branches.outputs.result }} | |
| with: | |
| script: | | |
| const run = require('./.github/scripts/backport.js'); | |
| return await run({ github, context, core }); |