Skip to content

Commit 3076f9a

Browse files
snomiaoclaude
andauthored
chore(deps): upgrade setup-bun action from v1 to v2 (#70)
Update all GitHub workflow files to use oven-sh/setup-bun@v2 for improved performance and compatibility with latest Bun features. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <[email protected]>
1 parent 621b81f commit 3076f9a

8 files changed

+25
-25
lines changed

.github/workflows/comfy-pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
3131
# Setup Bun
3232
- run: pip install setuptools
33-
- uses: oven-sh/setup-bun@v1
33+
- uses: oven-sh/setup-bun@v2
3434
# Run Comfy-PR Worker
3535
- run: bun i
3636
- run: bun src/index.ts
@@ -44,4 +44,4 @@ jobs:
4444
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
4545
AUTH_GOOGLE_ID: ${{ secrets.AUTH_GOOGLE_ID }}
4646
AUTH_GOOGLE_SECRET: ${{ secrets.AUTH_GOOGLE_SECRET }}
47-
AUTH_GCLOUD_URL: https://comfy-pr.vercel.app
47+
AUTH_GCLOUD_URL: https://comfy-pr.vercel.app

.github/workflows/coreping.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
timeout-minutes: 10
2020
steps:
2121
- uses: actions/checkout@v4
22-
- uses: oven-sh/setup-bun@v1
22+
- uses: oven-sh/setup-bun@v2
2323

2424
# Install dependencies
2525
- run: bun i

.github/workflows/create-publish-pr.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
repo_url:
7-
description: 'Comfy CustomNode Repo to setup ./pyproject.toml + .github/workflow/publish.yaml'
7+
description: "Comfy CustomNode Repo to setup ./pyproject.toml + .github/workflow/publish.yaml"
88
required: true
99
type: string
1010
default: "https://github.com/snomiao/ComfyNode-Registry-test"
@@ -27,7 +27,7 @@ jobs:
2727
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
2828
# Setup Bun
2929
- run: pip install setuptools
30-
- uses: oven-sh/setup-bun@v1
30+
- uses: oven-sh/setup-bun@v2
3131
# Run Comfy-PR Worker
3232
- run: bun i
3333
- run: bun src/createComfyRegistryPullRequests.ts ${{ inputs.repo_url }}
@@ -41,4 +41,4 @@ jobs:
4141
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
4242
AUTH_GOOGLE_ID: ${{ secrets.AUTH_GOOGLE_ID }}
4343
AUTH_GOOGLE_SECRET: ${{ secrets.AUTH_GOOGLE_SECRET }}
44-
AUTH_GCLOUD_URL: https://comfy-pr.vercel.app
44+
AUTH_GCLOUD_URL: https://comfy-pr.vercel.app

.github/workflows/gh-combined-tasks.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ on:
2222
jobs:
2323
run_combined_github_tasks:
2424
runs-on: ubuntu-latest
25-
timeout-minutes: 15 # Allow some extra time for all tasks
25+
timeout-minutes: 15 # Allow some extra time for all tasks
2626
steps:
2727
- uses: actions/checkout@v4
28-
- uses: oven-sh/setup-bun@v1
29-
28+
- uses: oven-sh/setup-bun@v2
29+
3030
# Install dependencies
3131
- run: bun i
32-
32+
3333
# Run all combined GitHub tasks
3434
- run: bun app/tasks/run-gh-tasks.ts
35-
timeout-minutes: 10 # Individual timeout for the script
35+
timeout-minutes: 10 # Individual timeout for the script
3636
env:
3737
# Bounty task environment variables
3838
AUTH_GCLOUD_URL: https://comfy-pr.vercel.app
@@ -41,7 +41,7 @@ jobs:
4141
COMFY_PR_REPO: ${{ secrets.COMFY_PR_REPO }}
4242
FORK_OWNER: "ComfyNodePRs"
4343
FORK_PREFIX: "PR-"
44-
44+
4545
# Common environment variables for all tasks
4646
GH_TOKEN_COMFY_PR: ${{ secrets.GH_TOKEN_COMFY_PR_BOT }}
4747
MONGODB_URI: ${{ secrets.MONGODB_URI }}

.github/workflows/github-contributor-analysis.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ jobs:
1616
timeout-minutes: 120 # 2 hours timeout
1717
steps:
1818
- uses: actions/checkout@v4
19-
19+
2020
# Setup Git (required for cloning repositories)
2121
- name: Configure Git
2222
run: |
2323
git config --global user.name "GitHub Action"
2424
git config --global user.email "[email protected]"
2525
git --version
26-
26+
2727
# Setup Bun
28-
- uses: oven-sh/setup-bun@v1
29-
28+
- uses: oven-sh/setup-bun@v2
29+
3030
# Install dependencies
3131
- name: Install dependencies
3232
run: bun install
@@ -38,22 +38,22 @@ jobs:
3838
MONGODB_URI: ${{ secrets.MONGODB_URI }}
3939
GH_TOKEN_COMFY_PR: ${{ secrets.GH_TOKEN_COMFY_PR }}
4040
timeout-minutes: 100
41-
41+
4242
# run summaryGithubContributorAnalyzeTask
4343
- name: Run summary task
4444
run: bun run app/tasks/github-contributor-analyze/summaryGithubContributorAnalyzeTask.ts
4545
env:
4646
MONGODB_URI: ${{ secrets.MONGODB_URI }}
4747
GH_TOKEN_COMFY_PR: ${{ secrets.GH_TOKEN_COMFY_PR }}
4848
timeout-minutes: 20
49-
49+
5050
# Optional: Generate and upload analysis report
5151
- name: Generate analysis report
5252
if: always()
5353
run: |
5454
echo "Contributor analysis completed at $(date)" > analysis-report.txt
5555
echo "Workflow run: ${{ github.run_id }}" >> analysis-report.txt
56-
56+
5757
# Optional: Upload artifacts
5858
- name: Upload analysis artifacts
5959
if: always()

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
2424
# Setup Bun
2525
- run: pip install setuptools
26-
- uses: oven-sh/setup-bun@v1
26+
- uses: oven-sh/setup-bun@v2
2727
# setup test db
2828
- run: docker compose -f docker-compose.test.yml up comfy-pr-db -d
2929
# setup comfy-pr
3030
# Run Comfy-PR Tests
3131
- run: bun i
3232
- run: bun test
3333
# shutdown test-db
34-
# - run: docker compose -f docker-compose.test.yml down comfy-pr-db
34+
# - run: docker compose -f docker-compose.test.yml down comfy-pr-db

.github/workflows/updateGithubActionTask.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
3131
# Setup Bun
3232
# - run: pip install setuptools
33-
- uses: oven-sh/setup-bun@v1
33+
- uses: oven-sh/setup-bun@v2
3434
# Run Comfy-PR Worker
3535
- run: bun i
3636
- run: bun src/GithubActionUpdateTask/updateGithubActionTaskList.ts
@@ -45,4 +45,4 @@ jobs:
4545
MONGODB_URI: ${{ secrets.MONGODB_URI }}
4646
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
4747
SLACK_BOT_CHANNEL: ${{ secrets.SLACK_BOT_CHANNEL }}
48-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
48+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

.github/workflows/updateOutdatedPullsTemplates.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
2828
# Setup Bun
2929
- run: pip install setuptools
30-
- uses: oven-sh/setup-bun@v1
30+
- uses: oven-sh/setup-bun@v2
3131
# Run Comfy-PR Worker
3232
- run: bun i
3333
- run: bun src/updateOutdatedPullsTemplates.ts
@@ -41,4 +41,4 @@ jobs:
4141
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
4242
AUTH_GOOGLE_ID: ${{ secrets.AUTH_GOOGLE_ID }}
4343
AUTH_GOOGLE_SECRET: ${{ secrets.AUTH_GOOGLE_SECRET }}
44-
AUTH_GCLOUD_URL: https://comfy-pr.vercel.app
44+
AUTH_GCLOUD_URL: https://comfy-pr.vercel.app

0 commit comments

Comments
 (0)