Skip to content

Commit

Permalink
Merge pull request #1054 from chanikag/workflow1
Browse files Browse the repository at this point in the history
Add workflow to send sync PR from 4.3.0 branch to main
  • Loading branch information
chanikag authored Oct 30, 2024
2 parents 1058a7c + a122a46 commit ff7426b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/weekly_sync_4.3.0_to_main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Weekly Sync from branch '4.3.0' to 'main'

# Schedule to run weekly on Friday at 5:00 AM UTC
on:
schedule:
- cron: '0 5 * * 5'

jobs:
sync_pr:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Reset 4.3.0 branch
run: |
git fetch origin 4.3.0:4.3.0
- name: create pull request
run: gh pr create -B main -H 4.3.0 --title 'Sync main branch with 4.3.0 branch' --body 'This PR is to sync the main branch with the 4.3.0 branch.'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ff7426b

Please sign in to comment.