Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 1 addition & 22 deletions .github/workflows/build-image-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,6 @@ jobs:
/*
!modules/tool/packages

# Get changed packages and test build
- name: Get changed files in PR
id: changed-files
uses: tj-actions/changed-files@v45
with:
files: modules/tool/packages/**

- name: Checkout changed packages
if: steps.changed-files.outputs.any_changed == 'true'
run: |
# Get list of changed packages
changed_packages=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | \
grep -oP 'modules/tool/packages/[^/]+' | \
sort -u)

# Checkout each changed package
for package in $changed_packages; do
echo "Checking out $package"
git sparse-checkout add "$package"
done

- name: Setup bun
if: steps.changed-files.outputs.any_changed == 'true'
uses: oven-sh/setup-bun@v2
Expand Down Expand Up @@ -93,7 +72,7 @@ jobs:
tool: issue-comment
title: Preview Image Label
body: |
Preview Images for this PR are:
Preview Images for this PR:

```
${{ secrets.ALI_IMAGE_NAME }}/fastgpt-plugin-pr:${{ github.event.pull_request.head.sha }}
Expand Down