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 Sep 25, 2024
1 parent 937132d commit e839a2b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
- "**.mdx"
- "**.png"
- "**.jpg"
- ".github/workflows/clean.yml"
- ".github/workflows/close.yml"
pull_request:
branches:
- 'main'
Expand All @@ -29,6 +31,8 @@ on:
- "**.mdx"
- "**.png"
- "**.jpg"
- ".github/workflows/clean.yml"
- ".github/workflows/close.yml"

jobs:
ci:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ jobs:
}
continue
}
${{ github.event_name == 'schedule' && '' || '// clean main branch caches' }}
${{ github.event_name == 'schedule' && '' || 'deleteCaches.push(c)' }}
if ('${{ github.event_name }}' != 'schedule') {
// clean branch caches.
deleteCaches.push(c)
}
}
// delete
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
- "**.mdx"
- "**.png"
- "**.jpg"
- ".github/workflows/clean.yml"
- ".github/workflows/close.yml"
tags:
- "v*.*.*"

Expand Down

0 comments on commit e839a2b

Please sign in to comment.