Skip to content
name: Open PR from csa to main
permissions:
contents: write
pull-requests: write
on:
push:
workflow_run:
workflows: ["Daily Sync of the csa branch"]
types:
- completed
workflow_dispatch:
jobs:
open-pr:
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Checkout csa
run: |
git fetch origin csa:csa
git reset --hard csa
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: automation/update_main
base: main
title: "Sync csa branch with main"
body: "This PR syncs the csa branch with the main branch."
token: ${{secrets.GITHUB_TOKEN}}