Skip to content

Commit

Permalink
redeploy all workers if src/utils is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RafidMuhymin committed May 30, 2024
1 parent 644a479 commit e0cbb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
- name: Deploy to Cloudflare Workers
shell: bash
run: |
for worker_src in src/workers/*; do git diff ${{ github.event.before }} HEAD -- $worker_src |& (grep -q . && cd $worker_src && ${{ github.ref == 'refs/heads/dev' && 'grep -q "\[env.development\]" wrangler.toml &&' || '' }} pnpm wrangler deploy ${{ github.ref == 'refs/heads/dev' && '--env=development' || '' }}) & done; wait
for worker_src in src/workers/*; do git diff ${{ github.event.before }} HEAD -- src/utils $worker_src |& (grep -q . && cd $worker_src && ${{ github.ref == 'refs/heads/dev' && 'grep -q "\[env.development\]" wrangler.toml &&' || '' }} pnpm wrangler deploy ${{ github.ref == 'refs/heads/dev' && '--env=development' || '' }}) & done; wait

0 comments on commit e0cbb52

Please sign in to comment.