Download build artifacts from the backport branch for testing in the main
branch
#36
Workflow file for this run
This file contains 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: Backport merged pull request | |
on: | |
pull_request_target: | |
types: [closed, labeled] | |
branches: | |
- main | |
permissions: | |
contents: write # so it can comment | |
pull-requests: write # so it can create pull requests | |
jobs: | |
backport: | |
name: Backport pull request | |
if: ${{ github.repository_owner == 'nvidia' && | |
github.event.pull_request.merged == true | |
}} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Load branch name | |
id: get-branch | |
run: | | |
OLD_BRANCH=$(cat .github/BACKPORT_BRANCH) | |
echo "OLD_BRANCH=${OLD_BRANCH}" >> $GITHUB_ENV | |
- name: Create backport pull requests | |
uses: korthout/backport-action@v3 | |
with: | |
copy_assignees: true | |
copy_labels_pattern: true | |
copy_requested_reviewers: true | |
label_pattern: to-be-backported | |
target_branches: ${{ fromJSON(env.OLD_BRANCH) }} | |
conflict_resolution: draft_commit_conflicts |