Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(ci): make web workflows reproducible (#40010)

yyh7dd7b3dfa8f8
diff --git a/.github/actions/setup-web/action.yml b/.github/actions/setup-web/action.yml
index 3ff297dcd1e..aee6cdbf924 100644
--- a/.github/actions/setup-web/action.yml
+++ b/.github/actions/setup-web/action.yml
@@ -11,6 +11,7 @@ runs:
- name: Setup Vite+
uses: voidzero-dev/setup-vp@ca1c46663915d6c1042ae23bd39ab85718bfb0fa # v1.10.0
with:
+ version: 0.2.6
node-version-file: .nvmrc
cache: true
run-install: true
diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml
index 1360d698c76..0af8c468fa6 100644
--- a/.github/workflows/main-ci.yml
+++ b/.github/workflows/main-ci.yml
@@ -15,7 +15,7 @@ permissions:
statuses: write
concurrency:
- group: main-ci-${{ github.head_ref || github.run_id }}
+ group: main-ci-${{ github.event.pull_request.number || github.event.merge_group.head_sha || github.run_id }}
cancel-in-progress: true
jobs:
@@ -89,6 +89,7 @@ jobs:
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- '.nvmrc'
+ - '.github/workflows/main-ci.yml'
- '.github/workflows/web-tests.yml'
- '.github/actions/setup-web/**'
e2e:
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index 34094ad6a2b..5a6c9a0945a 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -7,10 +7,6 @@ on:
required: true
type: string
-concurrency:
- group: style-${{ github.head_ref || github.run_id }}
- cancel-in-progress: true
-
permissions:
checks: write
statuses: write
diff --git a/.github/workflows/web-e2e.yml b/.github/workflows/web-e2e.yml
index e116f9bbc30..fce28856f45 100644
--- a/.github/workflows/web-e2e.yml
+++ b/.github/workflows/web-e2e.yml
@@ -11,10 +11,6 @@ on:
permissions:
contents: read
-concurrency:
- group: web-e2e-${{ github.head_ref || github.run_id }}
- cancel-in-progress: true
-
jobs:
test:
name: Web Full-Stack E2E
diff --git a/.github/workflows/web-tests.yml b/.github/workflows/web-tests.yml
index d4d99f6d090..922ecdeb7bd 100644
--- a/.github/workflows/web-tests.yml
+++ b/.github/workflows/web-tests.yml
@@ -9,10 +9,6 @@ on:
permissions:
contents: read
-concurrency:
- group: web-tests-${{ github.head_ref || github.run_id }}
- cancel-in-progress: true
-
jobs:
test:
name: Web Tests (${{ matrix.shardIndex }}/${{ matrix.shardTotal }})