Skip to content

Commit

Permalink
chore: updated workflow-deploy for worker
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jan 20, 2025
1 parent c3d1eeb commit 3730846
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 29 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/build.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
bun-version: latest

- name: execute directive
run: bun ./src/action.ts
run: bun ./dist/index.ts
id: plugin-name
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/worker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ jobs:
uses: oven-sh/setup-bun@v2

- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch || github.ref }}

- name: Update wrangler.toml Name Field
run: |
branch_name=$(echo '${{ github.ref }}' | sed 's#refs/heads/##' | sed 's#[^a-zA-Z0-9]#-#g')
branch_name=$(echo '${{ github.event.workflow_run.head_branch || github.ref }}' | sed 's#refs/heads/##' | sed 's#[^a-zA-Z0-9]#-#g')
# Extract base name from wrangler.toml
base_name=$(grep '^name = ' wrangler.toml | head -n 1 | sed 's/^name = "\(.*\)"$/\1/')
# Concatenate branch name with base name
Expand Down Expand Up @@ -97,7 +99,7 @@ jobs:
files: |
manifest.json
commit-message: "chore: [skip ci] update manifest.json url"
ref: ${{ github.ref }}
ref: ${{ github.event.workflow_run.head_branch || github.ref }}

- name: Write Deployment URL to Summary
run: |
Expand Down

0 comments on commit 3730846

Please sign in to comment.