Skip to content

Commit

Permalink
Add workflow inputs to force clean cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavecoke committed Jun 4, 2024
1 parent 28d47f9 commit f0ebb85
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Update Pages
on:
workflow_dispatch:
inputs:
cache:
description: "if use feishu-pages cache"
required: false
default: true
schedule:
# Every 3 days at 00:00
- cron: "0 0 */3 * *"
Expand All @@ -16,6 +21,11 @@ jobs:
fetch-depth: 1
branch: main

- name: Clear cache if cache is false
if: ${{ inputs.cache == 'false' }}
run: |
rm -rf ./feishu-pages/.cache
- name: Start export feishu pages
env:
FEISHU_APP_ID: ${{ secrets.FEISHU_APP_ID }}
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"autocorrect-node": "^2.8.4",
"autoprefixer": "^10.4.16",
"feishu-pages": "0.6.8",
"feishu-pages": "0.6.11",
"glob": "^10.3.10",
"medium-zoom": "^1.0.8",
"opencc-js": "^1.0.5",
Expand Down

0 comments on commit f0ebb85

Please sign in to comment.