Skip to content

Commit

Permalink
Update R2 upload action
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Nov 20, 2024
1 parent 6c34cf4 commit 64962a7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/json_library_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: JSON Library Upload

on:
workflow_dispatch:
workflow_run:
workflows: ["JSON Library Sorter and Doc Gen"]
types:
- completed

jobs:
librarian:
Expand All @@ -12,7 +16,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Upload library
- name: Upload library to Cloudflare
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
Expand All @@ -22,8 +26,8 @@ jobs:
source-dir: ./custom_components/battery_notes/data/
destination-dir: ./

- name: Purge cache for latest schema
uses: jakejarvis/cloudflare-purge-action@master
- name: Cloudflare Purge Cache
uses: jakejarvis/cloudflare-purge-action@v0.3.0
env:
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
Expand Down

0 comments on commit 64962a7

Please sign in to comment.