|
@@ -16,7 +16,7 @@ jobs:
|
|
|
- name: Checkout
|
|
|
uses: actions/checkout@v2.3.5
|
|
|
with:
|
|
|
- ref: 'feat/v2-ci'
|
|
|
+ ref: 'ci'
|
|
|
|
|
|
- name: Setup Node.js 20
|
|
|
uses: actions/setup-node@v3
|
|
@@ -33,7 +33,7 @@ jobs:
|
|
|
shell: "bash"
|
|
|
run: |
|
|
|
|
|
|
- PR_LIST=$(gh pr list --base feat/v2-ci --json number,headRefName)
|
|
|
+ PR_LIST=$(gh pr list --base ci --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"))]')
|
|
@@ -42,7 +42,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-ci after filtering"
|
|
|
+ echo "No pull requests found on branch ci after filtering"
|
|
|
exit 0
|
|
|
fi
|
|
|
|
|
@@ -59,13 +59,13 @@ jobs:
|
|
|
- name: Open PR with changes
|
|
|
uses: peter-evans/create-pull-request@v5
|
|
|
with:
|
|
|
- title: "chore(feat/v2-ci): updated preview dependencies [automated]"
|
|
|
- commit-message: "chore(feat/v2-ci): updated preview dependencies [automated]"
|
|
|
+ title: "chore(ci): updated preview dependencies [automated]"
|
|
|
+ commit-message: "chore(ci): updated preview dependencies [automated]"
|
|
|
body: "This PR updates preview dependencies to the latest versions."
|
|
|
branch: "chore/update-preview"
|
|
|
branch-suffix: "timestamp"
|
|
|
token: ${{ secrets.PAT_TOKEN }}
|
|
|
- base: "feat/v2-ci"
|
|
|
+ base: "ci"
|
|
|
add-paths: yarn.lock
|
|
|
committer: "GitHub <noreply@github.com>"
|
|
|
- author: "GitHub <github-actions[bot]@users.noreply.github.com>"
|
|
|
+ author: "GitHub <github-actions[bot]@users.noreply.github.com>"
|