Skip to content

Commit

Permalink
ci: adjust sync
Browse files Browse the repository at this point in the history
Signed-off-by: thxCode <[email protected]>
  • Loading branch information
thxCode committed Oct 24, 2024
1 parent 6d5154b commit d031970
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ on:
workflow_dispatch:
inputs:
max_releases:
description: "Maximum number of releases to sync"
description: "Maximum number of latest releases to sync"
required: false
default: 1
type: number
specific_release_tag:
description: "Specific release tag to sync"
required: false
default: ""
type: string
dry_run:
description: "Skip the actual sync"
required: false
Expand All @@ -27,6 +32,7 @@ on:

jobs:
gitcode:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-22.04
timeout-minutes: 240
steps:
Expand All @@ -42,9 +48,11 @@ jobs:
gitcode-password: "${{ secrets.CI_GITCODE_PASSWORD }}"
gitcode-token: "${{ secrets.CI_GITCODE_TOKEN }}"
max-releases: "${{ inputs.max_releases && inputs.max_releases || '1' }}"
specific-release-tag: "${{ inputs.specific_release_tag && inputs.specific_release_tag || '' }}"
dry-run: "${{ inputs.dry_run && inputs.dry_run || 'false' }}"

gitee:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-22.04
timeout-minutes: 120
steps:
Expand All @@ -59,6 +67,7 @@ jobs:
gitee-username: "${{ secrets.CI_GITEE_USERNAME }}"
gitee-token: "${{ secrets.CI_GITEE_TOKEN }}"
max-releases: "${{ inputs.max_releases && inputs.max_releases || '1' }}"
specific-release-tag: "${{ inputs.specific_release_tag && inputs.specific_release_tag || '' }}"
dry-run: "${{ inputs.dry_run && inputs.dry_run || 'false' }}"

tencent-cos:
Expand All @@ -73,4 +82,5 @@ jobs:
tencent-cos-region: "ap-guangzhou"
tencent-cos-bucket: "gpustack-1303613262"
max-releases: "${{ inputs.max_releases && inputs.max_releases || '1' }}"
specific-release-tag: "${{ inputs.specific_release_tag && inputs.specific_release_tag || '' }}"
dry-run: "${{ inputs.dry_run && inputs.dry_run || 'false' }}"

0 comments on commit d031970

Please sign in to comment.