Skip to content

Backport of actions: pin to the latest approved workflows into release/1.18.x #17132

Backport of actions: pin to the latest approved workflows into release/1.18.x

Backport of actions: pin to the latest approved workflows into release/1.18.x #17132

Workflow file for this run

on:
pull_request:
types:
- closed
# cancel existing runs of the same workflow on the same ref
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
stable_website_cherry_pick:
if: github.event.pull_request.merged && contains(github.event.pull_request.labels.*.name, 'docs-cherrypick')
runs-on: ubuntu-latest
name: Cherry pick to stable-website branch
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: stable-website
- run: |
git fetch --no-tags --prune origin main
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git cherry-pick ${{ github.sha }}
git push origin stable-website