Skip to content

Update sync-colfax-with-main.yml #2

Update sync-colfax-with-main.yml

Update sync-colfax-with-main.yml #2

name: Create PR to sync colfax with main
on:
pull_request:
types: [closed]
branches:
- main
jobs:
sync-colfax:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Create sync branch
run: |
git fetch origin
git checkout -b sync-colfax origin/main
git push origin sync-colfax
- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: "Sync colfax with main"
body: "Automated PR to sync colfax with latest changes from main"
head: sync-colfax
base: colfax