Add any served models in a column in the jobs table #502
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: Cherry-Pick into release-1.0 branch | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- main | |
jobs: | |
cherry_pick: | |
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'cherry-pick-release-1.0') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Git | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "[email protected]" | |
- name: Cherry-pick commit | |
run: | | |
git checkout release-1.0 | |
git cherry-pick ${{ github.event.pull_request.merge_commit_sha }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: cherry-pick-${{ github.event.pull_request.number }} | |
base: release-1.0 | |
title: 'Cherry-pick: Add commit to release-1.0 ${{ github.event.pull_request.title }}' | |
body: 'Automatically cherry-picked commit from main branch' |