Skip to content

Instantly share code, notes, and snippets.

@alexcarpenter
Created December 20, 2021 21:16
Show Gist options
  • Save alexcarpenter/9a58be8591637684f7bcf5ad9fc03044 to your computer and use it in GitHub Desktop.
Save alexcarpenter/9a58be8591637684f7bcf5ad9fc03044 to your computer and use it in GitHub Desktop.
on:
push:
branches:
- main
jobs:
stable_website_preview_cherry_pick:
runs-on: ubuntu-latest
name: Cherry pick main to stable-website-preview branch
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: stable-website-preview
- run: |
git fetch --no-tags --prune origin main
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git cherry-pick ${{ github.sha }}
git push origin stable-website-preview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment