Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
04bf2d9b
authored
Mar 16, 2026
by
Archer
Committed by
GitHub
Mar 16, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update action (#6571)
* action * action * action
parent
b90c053f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
47 deletions
+28
-47
.github/workflows/preview-docs-build.yml
+11
-17
.github/workflows/preview-docs-push.yml
+0
-8
.github/workflows/preview-fastgpt-build.yml
+9
-15
.github/workflows/preview-fastgpt-push.yml
+8
-7
No files found.
.github/workflows/preview-docs-build.yml
View file @
04bf2d9b
...
@@ -34,12 +34,6 @@ jobs:
...
@@ -34,12 +34,6 @@ jobs:
id
:
datetime
id
:
datetime
run
:
echo "datetime=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT
run
:
echo "datetime=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT
-
name
:
Save PR metadata
run
:
|
mkdir -p /tmp/pr-metadata
echo "${{ github.event.pull_request.number }}" > /tmp/pr-metadata/pr-number.txt
echo "${{ github.event.pull_request.head.sha }}" > /tmp/pr-metadata/pr-sha.txt
-
name
:
Set up Docker Buildx
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3
uses
:
docker/setup-buildx-action@v3
...
@@ -64,21 +58,21 @@ jobs:
...
@@ -64,21 +58,21 @@ jobs:
path
:
/tmp/fastgpt-docs-${{ steps.datetime.outputs.datetime }}.tar
path
:
/tmp/fastgpt-docs-${{ steps.datetime.outputs.datetime }}.tar
retention-days
:
1
retention-days
:
1
-
name
:
Upload PR metadata
outputs
:
uses
:
actions/upload-artifact@v4
datetime
:
${{ steps.datetime.outputs.datetime }}
with
:
name
:
pr-metadata-docs-${{ steps.datetime.outputs.datetime }}
path
:
/tmp/pr-metadata/
retention-days
:
1
call-push-workflow
:
call-push-workflow
:
needs
:
build-docs-image
needs
:
build-docs-image
permissions
:
contents
:
read
packages
:
write
attestations
:
write
id-token
:
write
pull-requests
:
write
issues
:
write
uses
:
./.github/workflows/preview-docs-push.yml
uses
:
./.github/workflows/preview-docs-push.yml
secrets
:
inherit
secrets
:
inherit
with
:
with
:
pr_number
:
${{
github.event.pull_request.number
}}
pr_number
:
${{
format('{0}', github.event.pull_request.number)
}}
datetime
:
${{ needs.build-docs-image.outputs.datetime }}
datetime
:
${{ needs.build-docs-image.outputs.datetime }}
run_id
:
${{ github.run_id }}
run_id
:
${{ format('{0}', github.run_id) }}
outputs
:
datetime
:
${{ steps.datetime.outputs.datetime }}
.github/workflows/preview-docs-push.yml
View file @
04bf2d9b
...
@@ -26,14 +26,6 @@ jobs:
...
@@ -26,14 +26,6 @@ jobs:
runs-on
:
ubuntu-24.04
runs-on
:
ubuntu-24.04
steps
:
steps
:
-
name
:
Download PR metadata
uses
:
actions/download-artifact@v4
with
:
name
:
pr-metadata-docs-${{ inputs.datetime }}
path
:
/tmp/pr-metadata/
run-id
:
${{ inputs.run_id }}
github-token
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Read PR information
-
name
:
Read PR information
id
:
pr
id
:
pr
run
:
|
run
:
|
...
...
.github/workflows/preview-fastgpt-build.yml
View file @
04bf2d9b
...
@@ -33,12 +33,6 @@ jobs:
...
@@ -33,12 +33,6 @@ jobs:
ref
:
${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
ref
:
${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
fetch-depth
:
0
fetch-depth
:
0
-
name
:
Save PR metadata
run
:
|
mkdir -p /tmp/pr-metadata
echo "${{ github.event.pull_request.number }}" > /tmp/pr-metadata/pr-number.txt
echo "${{ github.event.pull_request.head.sha }}" > /tmp/pr-metadata/pr-sha.txt
-
name
:
Set up Docker Buildx
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3
uses
:
docker/setup-buildx-action@v3
with
:
with
:
...
@@ -95,23 +89,23 @@ jobs:
...
@@ -95,23 +89,23 @@ jobs:
path
:
/tmp/${{ steps.config.outputs.IMAGE_NAME }}-${{ github.sha }}.tar
path
:
/tmp/${{ steps.config.outputs.IMAGE_NAME }}-${{ github.sha }}.tar
retention-days
:
1
retention-days
:
1
-
name
:
Upload PR metadata
uses
:
actions/upload-artifact@v4
with
:
name
:
pr-metadata-${{ matrix.image }}-${{ github.sha }}
path
:
/tmp/pr-metadata/
retention-days
:
1
call-push-workflow
:
call-push-workflow
:
needs
:
build-preview-images
needs
:
build-preview-images
strategy
:
strategy
:
matrix
:
matrix
:
image
:
[
fastgpt
,
sandbox
,
mcp_server
]
image
:
[
fastgpt
,
sandbox
,
mcp_server
]
fail-fast
:
false
fail-fast
:
false
permissions
:
contents
:
read
packages
:
write
attestations
:
write
id-token
:
write
pull-requests
:
write
issues
:
write
uses
:
./.github/workflows/preview-fastgpt-push.yml
uses
:
./.github/workflows/preview-fastgpt-push.yml
secrets
:
inherit
secrets
:
inherit
with
:
with
:
pr_number
:
${{
github.event.pull_request.number
}}
pr_number
:
${{
format('{0}', github.event.pull_request.number)
}}
pr_sha
:
${{ github.sha }}
pr_sha
:
${{ github.sha }}
run_id
:
${{
github.run_id
}}
run_id
:
${{
format('{0}', github.run_id)
}}
image
:
${{ matrix.image }}
image
:
${{ matrix.image }}
.github/workflows/preview-fastgpt-push.yml
View file @
04bf2d9b
...
@@ -16,15 +16,16 @@ on:
...
@@ -16,15 +16,16 @@ on:
required
:
true
required
:
true
type
:
string
type
:
string
permissions
:
contents
:
read
packages
:
write
attestations
:
write
id-token
:
write
pull-requests
:
write
issues
:
write
jobs
:
jobs
:
push-preview-images
:
push-preview-images
:
permissions
:
contents
:
read
packages
:
write
attestations
:
write
id-token
:
write
pull-requests
:
write
issues
:
write
# Required for issue-comment (PR comments use Issues API)
runs-on
:
ubuntu-24.04
runs-on
:
ubuntu-24.04
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment