From 3175439838af9f7cef5d588f162630a0d46947b3 Mon Sep 17 00:00:00 2001 From: chanikag Date: Tue, 22 Oct 2024 08:33:05 +0530 Subject: [PATCH] Update sync_to_main.yaml --- .github/workflows/sync_to_main.yaml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/sync_to_main.yaml b/.github/workflows/sync_to_main.yaml index a2f5c4c71..261f8e195 100644 --- a/.github/workflows/sync_to_main.yaml +++ b/.github/workflows/sync_to_main.yaml @@ -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