-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1011 Bytes
/
workers_kv_upload.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Upload files to Workers KV
on:
workflow_dispatch:
inputs:
limit:
description: "Maximum file size (in MB)"
default: 1
required: true
type: number
pr:
description: "Pull request number"
required: true
type: number
jobs:
upload:
runs-on: ubuntu-latest
name: Upload files to Workers KV
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Create a testing KV and modify wrangler.toml
shell: bash
run: . ./.github/scripts/setup_test_worker.sh
env:
PR_NUMBER: ${{ inputs.pr }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
- name: Upload Files
shell: pwsh
run: ./kv-bulk-upload.ps1 -LimitSize ${{ inputs.limit }}
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}