Skip to content

Commit

Permalink
pick latest release branch for cherry picks (nginx#5595)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 authored and ssrahul96 committed Jun 20, 2024
1 parent c8affb7 commit 34a10d6
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/cherry-pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,26 @@ jobs:
contents: write
pull-requests: write
runs-on: ubuntu-22.04
name: Cherry pick into release-3.5
name: Cherry pick into release branch
if: ${{ contains(github.event.pull_request.labels.*.name, 'dependencies') && github.event.pull_request.merged == true }}
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
fetch-depth: 0
- name: Cherry pick into release-3.5
uses: carloscastrojumo/[email protected]

- name: Set release branch variable
id: branch
run: |
branch=$(git branch -a | egrep '^\s+remotes/origin/release' | awk '{print $1}' | sort -u | tail -n 1)
release_branch=$(basename ${branch})
echo "branch=${release_branch}" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
- name: Cherry pick into ${{ steps.branch.outputs.branch }}
uses: carloscastrojumo/github-cherry-pick-action@503773289f4a459069c832dc628826685b75b4b3 # v1.0.10
with:
branch: release-3.5
branch: ${{ steps.branch.outputs.branch }}
author: nginx-bot <[email protected]>
labels: |
dependencies
reviewers: |
kic

0 comments on commit 34a10d6

Please sign in to comment.