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.

ci: avoid redundant E2E dependency cache saves (#42695)

Stephen Zhouab666bc448fa
diff --git a/.github/actions/setup-web/action.yml b/.github/actions/setup-web/action.yml
index 1c67d924778..b4ecd11abd9 100644
--- a/.github/actions/setup-web/action.yml
+++ b/.github/actions/setup-web/action.yml
@@ -5,6 +5,9 @@ inputs:
run-install:
description: Install web dependencies after setting up the toolchain
default: 'true'
+ cache-save:
+ description: Save the dependency cache after the job completes
+ default: 'true'
runs:
using: composite
@@ -21,4 +24,6 @@ runs:
pnpm: false
npm: false
cache: true
+ # Nested composite post actions can evaluate inputs in the outer scope.
+ cache-save: ${{ inputs.cache-save || 'true' }}
run-install: ${{ inputs.run-install }}
diff --git a/.github/workflows/web-e2e.yml b/.github/workflows/web-e2e.yml
index 8c1dbb7e220..84dbe9605f3 100644
--- a/.github/workflows/web-e2e.yml
+++ b/.github/workflows/web-e2e.yml
@@ -34,6 +34,9 @@ jobs:
- name: Setup web dependencies
uses: ./.github/actions/setup-web
+ with:
+ # Browser jobs wait for this job, including its post-action cache saves.
+ cache-save: 'false'
- name: Restore Next.js build cache
id: next-cache