Skip to content

Commit

Permalink
ci: adjust
Browse files Browse the repository at this point in the history
Signed-off-by: thxCode <[email protected]>
  • Loading branch information
thxCode committed Oct 18, 2024
1 parent 7544ca0 commit 6d5154b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 104 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/clean.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/close.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/prune.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: prune

permissions:
contents: write
pull-requests: write
actions: write
issues: write

defaults:
run:
shell: bash

on:
workflow_dispatch:
inputs:
prune:
description: 'Prune all caches'
required: false
type: boolean
default: false
schedule:
- cron: "0 0 * * *" # every day at 00:00 UTC

jobs:
close-stale-issues-and-prs:
uses: gpustack/.github/.github/workflows/close-stale-issues-and-prs.yml@main

clean-stale-caches:
uses: gpustack/.github/.github/workflows/clean-stale-caches.yml@main
with:
# allow to prune all caches on demand
prune: ${{ github.event_name != 'schedule' && inputs.prune || false }}
6 changes: 3 additions & 3 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
fetch-depth: 0
persist-credentials: false
- name: Sync
uses: gpustack/.github/actions/mirror-release-gitcode@main
uses: gpustack/.github/.github/actions/mirror-release-gitcode@main
with:
gitcode-username: "${{ secrets.CI_GITCODE_USERNAME }}"
gitcode-password: "${{ secrets.CI_GITCODE_PASSWORD }}"
Expand All @@ -54,7 +54,7 @@ jobs:
fetch-depth: 0
persist-credentials: false
- name: Sync
uses: gpustack/.github/actions/mirror-release-gitee@main
uses: gpustack/.github/.github/actions/mirror-release-gitee@main
with:
gitee-username: "${{ secrets.CI_GITEE_USERNAME }}"
gitee-token: "${{ secrets.CI_GITEE_TOKEN }}"
Expand All @@ -66,7 +66,7 @@ jobs:
timeout-minutes: 120
steps:
- name: Sync
uses: gpustack/.github/actions/mirror-release-tencent-cos@main
uses: gpustack/.github/.github/actions/mirror-release-tencent-cos@main
with:
tencent-secret-id: "${{ secrets.CI_TECENTCOS_SECRET_ID }}"
tencent-secret-key: "${{ secrets.CI_TECENTCOS_SECRET_KEY }}"
Expand Down

0 comments on commit 6d5154b

Please sign in to comment.