diff --git a/.github/workflows/worker-deploy.yml b/.github/workflows/worker-deploy.yml index f367e62..0cd0788 100644 --- a/.github/workflows/worker-deploy.yml +++ b/.github/workflows/worker-deploy.yml @@ -63,45 +63,45 @@ jobs: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} KERNEL_PUBLIC_KEY: ${{ secrets.KERNEL_PUBLIC_KEY }} - - name: Update manifest.json worker url - uses: actions/github-script@v7 - with: - script: | - const fs = require('fs'); - const path = require('path'); - - const manifestPath = path.resolve("${{ github.workspace }}", './manifest.json'); - const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8')); - - manifest["homepage_url"] = "${{ steps.wrangler_deploy.outputs.deployment-url }}"; - - const updatedManifest = JSON.stringify(manifest, null, 2); - fs.writeFileSync(manifestPath, updatedManifest); - console.log('Updated manifest:', updatedManifest); - - - name: Get GitHub App token - if: env.APP_ID != '' && env.APP_PRIVATE_KEY != '' - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ env.APP_ID }} - private-key: ${{ env.APP_PRIVATE_KEY }} - - - name: Format manifest.json using Prettier - shell: bash - run: | - bun add -DE prettier - bun prettier --write . - - - name: Commit file - uses: swinton/commit@v2.x - env: - GH_TOKEN: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }} - with: - files: | - manifest.json - commit-message: "chore: update manifest.json url" - ref: ${{ github.ref }} +# - name: Update manifest.json worker url +# uses: actions/github-script@v7 +# with: +# script: | +# const fs = require('fs'); +# const path = require('path'); +# +# const manifestPath = path.resolve("${{ github.workspace }}", './manifest.json'); +# const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8')); +# +# manifest["homepage_url"] = "${{ steps.wrangler_deploy.outputs.deployment-url }}"; +# +# const updatedManifest = JSON.stringify(manifest, null, 2); +# fs.writeFileSync(manifestPath, updatedManifest); +# console.log('Updated manifest:', updatedManifest); +# +# - name: Get GitHub App token +# if: env.APP_ID != '' && env.APP_PRIVATE_KEY != '' +# uses: actions/create-github-app-token@v1 +# id: app-token +# with: +# app-id: ${{ env.APP_ID }} +# private-key: ${{ env.APP_PRIVATE_KEY }} +# +# - name: Format manifest.json using Prettier +# shell: bash +# run: | +# bun add -DE prettier +# bun prettier --write . +# +# - name: Commit file +# uses: swinton/commit@v2.x +# env: +# GH_TOKEN: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }} +# with: +# files: | +# manifest.json +# commit-message: "chore: update manifest.json url" +# ref: ${{ github.ref }} - name: Write Deployment URL to Summary run: |