mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-02 12:07:02 +00:00
inlclude full date/time
This commit is contained in:
2
.github/workflows/dev_release.yml
vendored
2
.github/workflows/dev_release.yml
vendored
@@ -80,7 +80,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Update version in Cloudflare KV store
|
- name: Update version in Cloudflare KV store
|
||||||
run: |
|
run: |
|
||||||
JSON_DATA='{"version": "${{steps.build_info.outputs.VERSION}}", "date": "$(date -u +%Y-%m-%d)"}'
|
JSON_DATA="{\"version\": \"${{steps.build_info.outputs.VERSION}}\", \"date\": \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}"
|
||||||
curl -X PUT "https://api.cloudflare.com/client/v4/accounts/${{ secrets.CF_ACCOUNT_ID }}/storage/kv/namespaces/${{ secrets.CF_NAMESPACE_ID }}/values/dev" \
|
curl -X PUT "https://api.cloudflare.com/client/v4/accounts/${{ secrets.CF_ACCOUNT_ID }}/storage/kv/namespaces/${{ secrets.CF_NAMESPACE_ID }}/values/dev" \
|
||||||
-H "Authorization: Bearer ${{ secrets.CF_API_TOKEN }}" \
|
-H "Authorization: Bearer ${{ secrets.CF_API_TOKEN }}" \
|
||||||
-H "Content-Type: text/plain" \
|
-H "Content-Type: text/plain" \
|
||||||
|
|||||||
2
.github/workflows/stable_release.yml
vendored
2
.github/workflows/stable_release.yml
vendored
@@ -64,7 +64,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Update version in Cloudflare KV store
|
- name: Update version in Cloudflare KV store
|
||||||
run: |
|
run: |
|
||||||
JSON_DATA='{"version": "${{ github.event.release.tag_name }}", "date": "$(date -u +%Y-%m-%d)"}'
|
JSON_DATA="{\"version\": \"${{ github.event.release.tag_name }}\", \"date\": \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}"
|
||||||
curl -X PUT "https://api.cloudflare.com/client/v4/accounts/${{ secrets.CF_ACCOUNT_ID }}/storage/kv/namespaces/${{ secrets.CF_NAMESPACE_ID }}/values/stable" \
|
curl -X PUT "https://api.cloudflare.com/client/v4/accounts/${{ secrets.CF_ACCOUNT_ID }}/storage/kv/namespaces/${{ secrets.CF_NAMESPACE_ID }}/values/stable" \
|
||||||
-H "Authorization: Bearer ${{ secrets.CF_API_TOKEN }}" \
|
-H "Authorization: Bearer ${{ secrets.CF_API_TOKEN }}" \
|
||||||
-H "Content-Type: text/plain" \
|
-H "Content-Type: text/plain" \
|
||||||
|
|||||||
Reference in New Issue
Block a user