mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 15:10:22 +00:00
Update dockerhub_proxy.yml
This commit is contained in:
parent
56d11ce4b5
commit
7320c26f9e
1 changed files with 1 additions and 6 deletions
7
.github/workflows/dockerhub_proxy.yml
vendored
7
.github/workflows/dockerhub_proxy.yml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
|||
new_backends="const backends = [${urls}]"
|
||||
|
||||
# 更新 cloudflare.js 文件中的 backends 数组
|
||||
sed -i "s|const backends = \[.*\]|${new_backends}|" cloudflare.js
|
||||
sed -i "s|var backends = \[.*\]|${new_backends}|" cloudflare.js
|
||||
|
||||
- name: Set compatibility date
|
||||
id: set-date
|
||||
|
@ -36,8 +36,3 @@ jobs:
|
|||
apiToken: ${{ secrets.EDIT_CLOUDFLARE_WORKERS }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: deploy docker/cloudflare.js --name test --compatibility-date ${{ env.COMPATIBILITY_DATE }}
|
||||
|
||||
# - name: Commit and push changes
|
||||
# uses: stefanzweifel/git-auto-commit-action@v4
|
||||
# with:
|
||||
# commit_message: update cloudflare.js
|
||||
|
|
Loading…
Reference in a new issue