Skip to content

Commit

Permalink
Update sync_to_main.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
chanikag authored Oct 22, 2024
1 parent 5104275 commit 3175439
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/sync_to_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,21 @@ name: Weekly Sync from branch '4.3.0' to 'main'
# Schedule to run weekly on Friday at 3:15 PM UTC
on:
schedule:
- cron: '0 11 * * 1' # Adjust this cron expression for your preferred time
- cron: '10 3 * * 2' # Adjust this cron expression for your preferred time

jobs:
sync_pr:
runs-on: ubuntu-latest

steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3

# Create a pull request using the GitHub CLI
- name: Create a pull request
- uses: actions/checkout@v4
with:
ref: 4.3.0
- name: Reset 4.3.0 branch
run: |
git fetch origin main:main
git reset --hard main
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Sync branch 4.3.0 with main'
branch: propertyM
base: main
title: 'Weekly Sync: branch 4.3.0 to main'
body: 'Automated weekly sync from branch 4.3.0 to main.'
branch: 4.3.0

0 comments on commit 3175439

Please sign in to comment.