From ac7356f1a7c8f7bebc331a91d39de21ec1565284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E7=92=9F?= Date: Tue, 22 Oct 2024 16:29:01 +0800 Subject: [PATCH] Update dockerhub_proxy.yml --- .github/workflows/dockerhub_proxy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dockerhub_proxy.yml b/.github/workflows/dockerhub_proxy.yml index 039b47ce..348709d0 100644 --- a/.github/workflows/dockerhub_proxy.yml +++ b/.github/workflows/dockerhub_proxy.yml @@ -18,12 +18,16 @@ jobs: # curl -o https://raw.githubusercontent.com/Websoft9/doc.websoft9.com/refs/heads/main/docs/reference/_include/dockerhub-proxy.md # echo "Insert proxy lists to cloudflare.js" + - name: Set compatibility date + id: set-date + run: echo "COMPATIBILITY_DATE=$(date +%Y-%m-%d)" >> $GITHUB_ENV + - name: Deploy to cloudflare uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.EDIT_CLOUDFLARE_WORKERS }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: deploy docker/cloudflare.js --name test --compatibility-date $(date +%Y-%m-%d) + command: deploy docker/cloudflare.js --name test --compatibility-date ${{ env.COMPATIBILITY_DATE }} - name: Commit and push changes uses: stefanzweifel/git-auto-commit-action@v4