Skip to content

Commit 64962a7

Browse files
Update R2 upload action
1 parent 6c34cf4 commit 64962a7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/json_library_upload.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: JSON Library Upload
22

33
on:
44
workflow_dispatch:
5+
workflow_run:
6+
workflows: ["JSON Library Sorter and Doc Gen"]
7+
types:
8+
- completed
59

610
jobs:
711
librarian:
@@ -12,7 +16,7 @@ jobs:
1216
- name: Checkout repository
1317
uses: actions/checkout@v4
1418

15-
- name: Upload library
19+
- name: Upload library to Cloudflare
1620
uses: ryand56/r2-upload-action@latest
1721
with:
1822
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
@@ -22,8 +26,8 @@ jobs:
2226
source-dir: ./custom_components/battery_notes/data/
2327
destination-dir: ./
2428

25-
- name: Purge cache for latest schema
26-
uses: jakejarvis/cloudflare-purge-action@master
29+
- name: Cloudflare Purge Cache
30+
uses: jakejarvis/cloudflare-purge-action@v0.3.0
2731
env:
2832
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
2933
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}

0 commit comments

Comments
 (0)