Skip to content

add exception handling for token refresh fallback to login #320

add exception handling for token refresh fallback to login

add exception handling for token refresh fallback to login #320

Workflow file for this run

name: Gradle build test
permissions:
contents: read
pull-requests: write
on:
pull_request:
paths:
- 'dify/**'
- '.github/workflows/gradle-build.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# 运行 JDK 配置
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
# Gradle 缓存配置
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: "8.10.2"
build-root-directory: .
- name: Build with Gradle
run: |
gradle build -x test