Skip to content

Commit

Permalink
bug: update GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrig committed Dec 23, 2023
1 parent 0c46ee7 commit 1f8f82f
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/jsdelivr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,20 @@ jobs:
purge:
runs-on: ubuntu-latest
steps:
- name: Purge
uses: egad13/[email protected]
- name: Checkout main
uses: actions/checkout@v3
with:
url:
attempts: 3
ref: ${{ github.ref }}
- name: Determine CDN URLs to Purge
id: purge_urls
run: |
baseUrl="https://cdn.jsdelivr.net/gh/${{ github.repository }}@main"
urls=""
for f in `find dist -name "*.js" -type f`; do
urls+="${baseUrl}/${f},"
done
echo "urls=${urls%,*}" >> $GITHUB_OUTPUT
- name: Purge CDN Caches
uses: egad13/purge-jsdelivr-cache@v1
with:
url: ${{ steps.purge_urls.outputs.urls }}

0 comments on commit 1f8f82f

Please sign in to comment.