From 5d12a164311ecebf62d7791b9cafcf01e70de5ab Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 23 Oct 2024 14:21:35 +0300 Subject: [PATCH] Update update-preview-deps.yml --- .github/workflows/update-preview-deps.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/update-preview-deps.yml b/.github/workflows/update-preview-deps.yml index 8c9e71e0..df0cd31a 100644 --- a/.github/workflows/update-preview-deps.yml +++ b/.github/workflows/update-preview-deps.yml @@ -1,4 +1,4 @@ -name: "Update Preview Dependencies (feat/v2)" +name: "Update Preview Dependencies (master)" on: workflow_dispatch: @@ -13,8 +13,6 @@ jobs: - name: Checkout uses: actions/checkout@v2.3.5 - with: - ref: 'feat/v2' - name: Setup Node.js 20 uses: actions/setup-node@v3 @@ -31,7 +29,7 @@ jobs: shell: "bash" run: | - PR_LIST=$(gh pr list --base feat/v2 --json number,headRefName) + PR_LIST=$(gh pr list --base master --json number,headRefName) # Filter out PRs where headRefName starts with 'chore/update-preview' FILTERED_PR_LIST=$(echo "$PR_LIST" | jq '[.[] | select(.headRefName | test("^chore/update-preview"))]') @@ -40,7 +38,7 @@ jobs: # Check if any pull requests were found after filtering if [ -z "$FILTERED_PR_LIST" ] || [ "$FILTERED_PR_LIST" = "[]" ]; then - echo "No pull requests found on branch feat/v2 after filtering" + echo "No pull requests found on branch master after filtering" exit 0 fi @@ -57,13 +55,13 @@ jobs: - name: Open PR with changes uses: peter-evans/create-pull-request@v5 with: - title: "chore(feat/v2): updated preview dependencies [automated]" + title: "chore(master): updated preview dependencies [automated]" body: "This PR updates preview dependencies to the latest versions." - commit-message: "chore(feat/v2): updated preview dependencies [automated]" + commit-message: "chore(master): updated preview dependencies [automated]" branch: "chore/update-preview" branch-suffix: "timestamp" token: ${{ secrets.PAT_TOKEN }} - base: "feat/v2" + base: "master" add-paths: yarn.lock committer: "GitHub " author: "GitHub "