refactor: new admin user edit ui #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update OTA API Version | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
update_ota_api: | |
name: Update Workers KV value | |
runs-on: ubuntu-latest | |
steps: | |
- name: Request Cloudflare API | |
run: | | |
echo "Updating OTA API version to ${{ github.ref_name }}" | |
curl --request PUT \ | |
--url https://api.cloudflare.com/client/v4/accounts/${{ secrets.CLOUDFLARE_ACCOUNT_ID }}/storage/kv/namespaces/${{ secrets.CLOUDFLARE_KV_NAMESPACE_ID }}/bulk \ | |
--header 'Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}' \ | |
--header 'Content-Type: application/json' \ | |
--data '[ | |
{ | |
"base64": false, | |
"key": "latest_next_version", | |
"value": "${{ github.ref_name }}" | |
} | |
]' |