Skip to content

Commit

Permalink
测试脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
wes-lin committed Feb 28, 2025
1 parent f95db14 commit b59a2e7
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ jobs:
- name: 🗳️ Check if CACHE_COOKIE is true
if: vars.CACHE_COOKIE == 'true'
run: |
echo "CACHE_COOKIE=true" >> $GITHUB_ENV
echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: 📹 Restore cached Cookie
id: cache-cookie-restore
if: vars.CACHE_COOKIE == 'true'
uses: actions/restore@v4
uses: actions/cache@v4
with:
path: .cookie
key: ${{ env.CURRENT_DATE }}-cookie
Expand All @@ -53,15 +54,6 @@ jobs:
max_attempts: 3
command: npm start

- name: 💾 Save cookie
id: cache_primes_save
if: vars.CACHE_COOKIE == 'true'
uses: actions/cache/save@v4
with:
path: |
.cookie
key: ${{ steps.cache-cookie-restore.outputs.cache-primary-key }}

- name: 🚗 Keep Running
if: github.event_name == 'schedule'
run: |
Expand Down

0 comments on commit b59a2e7

Please sign in to comment.