From 237416103056acf0e813ec2774a5f460279d3639 Mon Sep 17 00:00:00 2001 From: Manish Gupta <59428681+mguptahub@users.noreply.github.com> Date: Tue, 23 Jan 2024 15:53:07 +0530 Subject: [PATCH] Sync Action Modified (#3437) --- .github/workflows/create-sync-pr.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/create-sync-pr.yml b/.github/workflows/create-sync-pr.yml index add08d1ed..47a85f3ba 100644 --- a/.github/workflows/create-sync-pr.yml +++ b/.github/workflows/create-sync-pr.yml @@ -1,25 +1,23 @@ name: Create Sync Action on: - pull_request: + workflow_dispatch: + push: branches: - preview - types: - - closed + env: - SOURCE_BRANCH_NAME: ${{github.event.pull_request.base.ref}} + SOURCE_BRANCH_NAME: ${{ github.ref_name }} jobs: sync_changes: - # Only run the job when a PR is merged - if: github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: pull-requests: write contents: read steps: - name: Checkout Code - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 with: persist-credentials: false fetch-depth: 0