mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-20 18:54:09 +00:00
action (#5277)
This commit is contained in:
15
.github/workflows/docs-sync_imgs.yml
vendored
15
.github/workflows/docs-sync_imgs.yml
vendored
@@ -1,16 +1,19 @@
|
|||||||
name: Sync images
|
name: Sync images
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- docSite/assets/imgs/**
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- docSite/assets/imgs/**
|
- docSite/assets/imgs/**
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
attestations: write
|
||||||
|
id-token: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync:
|
sync:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -21,7 +24,7 @@ jobs:
|
|||||||
- name: Run GitHub File Sync
|
- name: Run GitHub File Sync
|
||||||
uses: BetaHuhn/repo-file-sync-action@v1.21.0
|
uses: BetaHuhn/repo-file-sync-action@v1.21.0
|
||||||
with:
|
with:
|
||||||
GH_PAT: ${{ secrets.IMG_GH_PAT }}
|
GH_PAT: ${{ secrets.GITHUB_TOKEN }}
|
||||||
CONFIG_PATH: .github/doc-sync-image.yml
|
CONFIG_PATH: .github/doc-sync-image.yml
|
||||||
ORIGINAL_MESSAGE: true
|
ORIGINAL_MESSAGE: true
|
||||||
SKIP_PR: true
|
SKIP_PR: true
|
||||||
|
Reference in New Issue
Block a user