chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:34:48 +08:00
commit 77bb5bf71f
3762 changed files with 353249 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
name: Purge Cache
on:
workflow_dispatch: {}
jobs:
purge-cache:
runs-on: ubuntu-latest
steps:
- name: Delete Cache Entries
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
BRANCH: ${{ github.ref_name }}
run: |
gh extension install actions/gh-actions-cache
echo "Fetching list of cache keys for branch '$BRANCH'"
cacheKeysForBranch=$(gh actions-cache list --limit 100 -R "$REPO" -B "$BRANCH" | cut -f 1 )
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting cache entries..."
for cacheKey in $cacheKeysForBranch
do
echo "Deleting entry: $cacheKey"
gh actions-cache delete "$cacheKey" -R "$REPO" -B "$BRANCH" --confirm
done
echo "Done"