Skip to content

Chore/ensure telemetry generation up to date #368

Chore/ensure telemetry generation up to date

Chore/ensure telemetry generation up to date #368

Workflow file for this run

name: "Cherry-pick dependencies to release branch"
on:
pull_request:
branches:
- main
types: ["closed"]
permissions:
contents: read
jobs:
cherry_pick_to_release:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-22.04
name: Cherry pick into release branch
if: ${{ (contains(github.event.pull_request.labels.*.name, 'dependencies') || contains(github.event.pull_request.labels.*.name, 'needs cherry pick')) && github.event.pull_request.merged == true }}
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
token: ${{ secrets.NGINX_PAT }}
- 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: ${{ steps.branch.outputs.branch }}
token: ${{ secrets.NGINX_PAT }}
author: nginx-bot <integrations@nginx.com>
title: "[cherry-pick] {old_title}"