|
@@ -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 <noreply@github.com>"
|
|
|
author: "GitHub <github-actions[bot]@users.noreply.github.com>"
|